diff --git a/Generals/Code/Libraries/Source/WWVegas/WW3D2/assetmgr.cpp b/Generals/Code/Libraries/Source/WWVegas/WW3D2/assetmgr.cpp index 50740c9805..a3712b62d4 100644 --- a/Generals/Code/Libraries/Source/WWVegas/WW3D2/assetmgr.cpp +++ b/Generals/Code/Libraries/Source/WWVegas/WW3D2/assetmgr.cpp @@ -1145,6 +1145,12 @@ TextureClass * WW3DAssetManager::Get_Texture { tex = NEW_REF (TextureClass, (lower_case_name, NULL, mip_level_count, texture_format, allow_compression)); } + else + { + WWASSERT_PRINT(false, ("Unhandled case")); + return NULL; + } + TextureHash.Insert(tex->Get_Texture_Name(),tex); } diff --git a/GeneralsMD/Code/Libraries/Source/WWVegas/WW3D2/assetmgr.cpp b/GeneralsMD/Code/Libraries/Source/WWVegas/WW3D2/assetmgr.cpp index 4d00d89114..f963b6d4fb 100644 --- a/GeneralsMD/Code/Libraries/Source/WWVegas/WW3D2/assetmgr.cpp +++ b/GeneralsMD/Code/Libraries/Source/WWVegas/WW3D2/assetmgr.cpp @@ -1122,6 +1122,12 @@ TextureClass * WW3DAssetManager::Get_Texture { tex = NEW_REF (VolumeTextureClass, (lower_case_name, NULL, mip_level_count, texture_format, allow_compression, allow_reduction)); } + else + { + WWASSERT_PRINT(false, ("Unhandled case")); + return NULL; + } + TextureHash.Insert(tex->Get_Texture_Name(),tex); }