소스 검색

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

AzaezelX 4 년 전
부모
커밋
a2ecbe53dd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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];\
    }