mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-19 19:35:26 +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
|
|
@ -250,8 +250,9 @@ namespace VPersistence
|
|||
if ( object->isMethod( "onAdd" ) )
|
||||
{
|
||||
// Callback.
|
||||
const char *retValue = Con::executef( object, "onAdd" );
|
||||
if ( !dAtob( retValue ) )
|
||||
ConsoleValue cValue = Con::executef( object, "onAdd" );
|
||||
|
||||
if ( !cValue.getBool() )
|
||||
{
|
||||
// Delete.
|
||||
object->deleteObject();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue