mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 19:53:48 +00:00
Small fixes for the script interpreter.
This commit is contained in:
parent
69d7a2f4a1
commit
8fc0db21c1
3 changed files with 11 additions and 11 deletions
|
|
@ -389,14 +389,14 @@ SimObject* findObject(const char* name)
|
|||
SimObject* findObject(const ConsoleValue &val)
|
||||
{
|
||||
if (val.getType() == ConsoleValueType::cvInteger)
|
||||
return findObject((SimObjectId)val.getInt());
|
||||
return findObject((SimObjectId)val.getFastInt());
|
||||
return findObject(val.getString());
|
||||
}
|
||||
|
||||
SimObject* findObject(ConsoleValue* val)
|
||||
{
|
||||
if (val->getType() == ConsoleValueType::cvInteger)
|
||||
return findObject((SimObjectId)val->getInt());
|
||||
return findObject((SimObjectId)val->getFastInt());
|
||||
return findObject(val->getString());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue