mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +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
1 changed files with 1 additions and 1 deletions
|
|
@ -517,7 +517,7 @@ public: \
|
||||||
Resource<TSShape> get##name##Resource(const U32& index) \
|
Resource<TSShape> get##name##Resource(const U32& index) \
|
||||||
{\
|
{\
|
||||||
if(index >= sm##name##Count || index < 0)\
|
if(index >= sm##name##Count || index < 0)\
|
||||||
return nullptr;\
|
return ResourceManager::get().load( "" );\
|
||||||
return m##name[index];\
|
return m##name[index];\
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue