Browse Source

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 years ago
parent
commit
98143a8e7a
1 changed files with 1 additions and 1 deletions
  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.");
 
 	// Fetch the asset ID
-	mImageAsset = StringTable->insert(pImageAssetID);
+	mImageAssetID = StringTable->insert(pImageAssetID);
 
 	// Assign asset if this profile is being used.
 	if (mRefCount != 0)