Browse Source

Merge pull request #1516 from Azaezel/alpha41/preLoad2

sometimes you won't have debris
Brian Roberts 2 months ago
parent
commit
5dbcaf55c7
1 changed files with 1 additions and 1 deletions
  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;