* [SFXDescription] BugFix: Correct a data corruption issue in converting legacy channel values.

This commit is contained in:
Robert MacGregor 2021-11-24 13:46:18 -05:00
parent f1a48df676
commit 4dea3810b9

View file

@ -454,7 +454,8 @@ bool SFXDescription::onAdd()
const char* channelValue = getDataField( sChannel, NULL );
if( channelValue && channelValue[ 0 ] )
{
const char* group = Con::evaluatef( "return sfxOldChannelToGroup( %s );", channelValue );
ConsoleValue result = Con::evaluatef( "return sfxOldChannelToGroup( %s );", channelValue );
const char* group = result.getString();
if( !Sim::findObject( group, mSourceGroup ) )
Con::errorf( "SFXDescription::onAdd - could not resolve channel '%s' to SFXSource", channelValue );
}