Explorar el Código

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

AzaezelX hace 4 años
padre
commit
a2ecbe53dd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Engine/source/T3D/assets/ShapeAsset.h

+ 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];\
    }