mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
Fix error in DB substitution logic and add regressiontest
This commit is contained in:
parent
d441e2161f
commit
e7d17e5453
2 changed files with 68 additions and 1 deletions
|
|
@ -253,7 +253,7 @@ void SimDataBlock::performSubstitutions(SimDataBlock* dblock, const SimObject* o
|
|||
b[0] = '\0';
|
||||
|
||||
Con::EvalResult evalResult = Con::evaluate(avar("return %s;", buffer), false, 0);
|
||||
if (evalResult.valid)
|
||||
if (!evalResult.valid)
|
||||
{
|
||||
Con::errorf("Field Substitution Failed: field=\"%s\" substitution=\"%s\" -- syntax error",
|
||||
substitutions[i]->mSlot, substitutions[i]->mValue);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue