浏览代码

ImageAsset in Profile Bug

This latest version of the engine, finally keeps track of GuiProfile references correctly. As such, profiles actually drop their assets when they reach zero references (as originally intended). This revealed that the code to reinstate those assets was not actually working as hasn't been for a long time. The bug is fixed now.
Peter Robinson 2 年之前
父节点
当前提交
98143a8e7a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      engine/source/gui/guiTypes.cc

+ 1 - 1
engine/source/gui/guiTypes.cc

@@ -740,7 +740,7 @@ void GuiControlProfile::setImageAsset(const char* pImageAssetID)
 	AssertFatal(pImageAssetID != NULL, "Cannot use a NULL asset ID.");
 	AssertFatal(pImageAssetID != NULL, "Cannot use a NULL asset ID.");
 
 
 	// Fetch the asset ID
 	// Fetch the asset ID
-	mImageAsset = StringTable->insert(pImageAssetID);
+	mImageAssetID = StringTable->insert(pImageAssetID);
 
 
 	// Assign asset if this profile is being used.
 	// Assign asset if this profile is being used.
 	if (mRefCount != 0)
 	if (mRefCount != 0)