mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
cleanup
This commit is contained in:
parent
02447f0996
commit
f776e73b04
11 changed files with 50 additions and 54 deletions
|
|
@ -388,8 +388,6 @@ SimObject* findObject(const char* name)
|
|||
|
||||
SimObject* findObject(const ConsoleValue &val)
|
||||
{
|
||||
if (val.getType() == ConsoleValueType::cvNone)
|
||||
return NULL;
|
||||
if (val.getType() == ConsoleValueType::cvInteger)
|
||||
return findObject((SimObjectId)val.getInt());
|
||||
return findObject(val.getString());
|
||||
|
|
@ -397,8 +395,6 @@ SimObject* findObject(const ConsoleValue &val)
|
|||
|
||||
SimObject* findObject(ConsoleValue* val)
|
||||
{
|
||||
if (val->getType() == ConsoleValueType::cvNone)
|
||||
return NULL;
|
||||
if (val->getType() == ConsoleValueType::cvInteger)
|
||||
return findObject((SimObjectId)val->getInt());
|
||||
return findObject(val->getString());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue