mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-20 04:34:48 +00:00
Update console.cpp
This commit is contained in:
parent
09b1e9783a
commit
e6ead9f268
|
|
@ -1270,18 +1270,17 @@ static ConsoleValue _internalExecute(SimObject *object, S32 argc, ConsoleValue a
|
|||
if(object->getNamespace())
|
||||
{
|
||||
U32 ident = object->getId();
|
||||
const char* oldIdent = dStrdup(argv[1].getString());
|
||||
|
||||
Namespace::Entry *ent = object->getNamespace()->lookup(funcName);
|
||||
|
||||
if(ent == NULL)
|
||||
{
|
||||
//warnf(ConsoleLogEntry::Script, "%s: undefined for object '%s' - id %d", funcName, object->getName(), object->getId());
|
||||
|
||||
STR.clearFunctionOffset();
|
||||
return std::move(ConsoleValue());
|
||||
}
|
||||
|
||||
const char* oldIdent = dStrdup(argv[1].getString());
|
||||
|
||||
// Twiddle %this argument
|
||||
argv[1].setInt(ident);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue