Browse Source

sometimes you won't have debris

AzaezelX 2 months ago
parent
commit
0c3e0b1c05
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;