Explorar o código

Merge pull request #1516 from Azaezel/alpha41/preLoad2

sometimes you won't have debris
Brian Roberts hai 2 meses
pai
achega
5dbcaf55c7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Engine/source/T3D/debris.cpp

+ 1 - 1
Engine/source/T3D/debris.cpp

@@ -283,7 +283,7 @@ bool DebrisData::preload(bool server, String &errorStr)
             return false;
       }
    }
-   else
+   else if (!mShapeAsset.isNull())
    {
       errorStr = String::ToString("DebrisData::load: Couldn't load shape \"%s\"", _getShapeAssetId());
       return false;