2
0
Эх сурвалжийг харах

gcc seems to have an issue converting nullptr to Resource<TSShape>, so this will at least get it compiling

AzaezelX 4 жил өмнө
parent
commit
a2ecbe53dd

+ 1 - 1
Engine/source/T3D/assets/ShapeAsset.h

@@ -517,7 +517,7 @@ public: \
    Resource<TSShape> get##name##Resource(const U32& index) \
    {\
       if(index >= sm##name##Count || index < 0)\
-         return nullptr;\
+         return ResourceManager::get().load( "" );\
       return m##name[index];\
    }