mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-20 04:34:48 +00:00
gcc seems to have an issue converting nullptr to Resource<TSShape>, so this will at least get it compiling
This commit is contained in:
parent
c7b44203ad
commit
a2ecbe53dd
|
|
@ -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];\
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue