mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Prevented looking up incorrect object handles.
Previously, dAtoi would be called on arbitrary strings delimited only by the / character. Now, Sim::findObject actually checks that object handles (strings starting with a digit) actually only contain digits or slashes.
This commit is contained in:
parent
fa1a0124a9
commit
46f140710a
|
|
@ -367,6 +367,8 @@ SimObject* findObject(const char* name)
|
|||
return NULL;
|
||||
return obj->findObject(temp);
|
||||
}
|
||||
else if (c < '0' || c > '9')
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
S32 len;
|
||||
|
|
|
|||
Loading…
Reference in a new issue