mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Fix specific usage of Con::executef where it was not being assigned to a ConsoleValue before getting it's data out of it.
This commit is contained in:
parent
0f89373782
commit
755bbacaa0
13 changed files with 35 additions and 21 deletions
|
|
@ -118,7 +118,8 @@ S32 QSORT_CALLBACK SimObjectList::_callbackSort( const void *a, const void *b )
|
|||
static char idB[64];
|
||||
dSprintf( idB, sizeof( idB ), "%d", objB->getId() );
|
||||
|
||||
return dAtoi( Con::executef( (const char*)smSortScriptCallbackFn, idA, idB ) );
|
||||
ConsoleValue cValue = Con::executef( (const char*)smSortScriptCallbackFn, idA, idB );
|
||||
return cValue.getInt();
|
||||
}
|
||||
|
||||
void SimObjectList::scriptSort( const String &scriptCallback )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue