Browse Source

- Fixed issue reported on garagegames.com/community/forums/viewthread/133647.

MichPerry-GG 12 years ago
parent
commit
09766a4c87
1 changed files with 5 additions and 5 deletions
  1. 5 5
      engine/source/assets/assetBase.cc

+ 5 - 5
engine/source/assets/assetBase.cc

@@ -47,9 +47,9 @@ IMPLEMENT_CONOBJECT( AssetBase );
 StringTableEntry assetNameField = StringTable->insert( "AssetName" );
 StringTableEntry assetNameField = StringTable->insert( "AssetName" );
 StringTableEntry assetDescriptionField = StringTable->insert( "AssetDescription" );
 StringTableEntry assetDescriptionField = StringTable->insert( "AssetDescription" );
 StringTableEntry assetCategoryField = StringTable->insert( "AssetCategory" );
 StringTableEntry assetCategoryField = StringTable->insert( "AssetCategory" );
+StringTableEntry assetAutoUnloadField = StringTable->insert( "AssetAutoUnload" );
 StringTableEntry assetInternalField = StringTable->insert( "AssetInternal" );
 StringTableEntry assetInternalField = StringTable->insert( "AssetInternal" );
 StringTableEntry assetPrivateField = StringTable->insert( "AssetPrivate" );
 StringTableEntry assetPrivateField = StringTable->insert( "AssetPrivate" );
-StringTableEntry assetAutoUnloadField = StringTable->insert( "AssetAutoUnload" );
 
 
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
 
 
@@ -83,9 +83,9 @@ void AssetBase::initPersistFields()
     addProtectedField( assetNameField, TypeString, 0, &setAssetName, &getAssetName, &writeAssetName, "The name of the asset.  The is not a unique identification like an asset Id." );
     addProtectedField( assetNameField, TypeString, 0, &setAssetName, &getAssetName, &writeAssetName, "The name of the asset.  The is not a unique identification like an asset Id." );
     addProtectedField( assetDescriptionField, TypeString, 0, &setAssetDescription, &getAssetDescription, &writeAssetDescription, "The simple description of the asset contents." );
     addProtectedField( assetDescriptionField, TypeString, 0, &setAssetDescription, &getAssetDescription, &writeAssetDescription, "The simple description of the asset contents." );
     addProtectedField( assetCategoryField, TypeString, 0, &setAssetCategory, &getAssetCategory, &writeAssetCategory, "An arbitrary category that can be used to categorized assets." );
     addProtectedField( assetCategoryField, TypeString, 0, &setAssetCategory, &getAssetCategory, &writeAssetCategory, "An arbitrary category that can be used to categorized assets." );
-    addProtectedField( assetInternalField, TypeBool, 0, &setAssetAutoUnload, &getAssetAutoUnload, &writeAssetAutoUnload, "Whether the asset is automatically unloaded when an asset is released and has no other acquisitions or not." );
-    addProtectedField( assetPrivateField, TypeBool, 0, &setAssetInternal, &getAssetInternal, &writeAssetInternal, "Whether the asset is used internally only or not." );
-    addProtectedField( assetAutoUnloadField, TypeBool, 0, &defaultProtectedNotSetFn, &getAssetPrivate, &defaultProtectedNotWriteFn, "Whether the asset is private or not." );
+    addProtectedField( assetAutoUnloadField, TypeBool, 0, &setAssetAutoUnload, &getAssetAutoUnload, &writeAssetAutoUnload, "Whether the asset is automatically unloaded when an asset is released and has no other acquisitions or not." );
+    addProtectedField( assetInternalField, TypeBool, 0, &setAssetInternal, &getAssetInternal, &writeAssetInternal, "Whether the asset is used internally only or not." );
+    addProtectedField( assetPrivateField, TypeBool, 0, &defaultProtectedNotSetFn, &getAssetPrivate, &defaultProtectedNotWriteFn, "Whether the asset is private or not." );
 }
 }
 
 
 //------------------------------------------------------------------------------
 //------------------------------------------------------------------------------
@@ -349,4 +349,4 @@ void AssetBase::setOwned( AssetManager* pAssetManager, AssetDefinition* pAssetDe
 
 
     // Flag asset as initialized.
     // Flag asset as initialized.
     mAssetInitialized = true;
     mAssetInitialized = true;
-}
+}