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