mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +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
|
|
@ -989,9 +989,10 @@ afxEffectron::start_effect(afxEffectronData* datablock, SimObject* extra)
|
|||
}
|
||||
|
||||
// CALL SCRIPT afxEffectronData::onPreactivate(%params, %extra)
|
||||
const char* result = Con::executef(datablock, "onPreactivate",
|
||||
ConsoleValue cValue = Con::executef(datablock, "onPreactivate",
|
||||
Con::getIntArg(param_holder->getId()),
|
||||
(extra) ? Con::getIntArg(extra->getId()) : "");
|
||||
const char* result = cValue.getString();
|
||||
if (result && result[0] != '\0' && !dAtob(result))
|
||||
{
|
||||
#if defined(TORQUE_DEBUG)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue