- handle all remaining places of sound ID conversions after removing the conversion operators.

This commit is contained in:
Christoph Oelckers 2022-11-24 15:48:35 +01:00
commit d173c0453c
19 changed files with 68 additions and 71 deletions

View file

@ -1299,7 +1299,7 @@ FxExpression *FxStringCast::Resolve(FCompileContext &ctx)
if (basex->isConstant())
{
ExpVal constval = static_cast<FxConstant *>(basex)->GetValue();
FxExpression *x = new FxConstant(soundEngine->GetSoundName(constval.GetInt()), ScriptPosition);
FxExpression *x = new FxConstant(soundEngine->GetSoundName(FSoundID::fromInt(constval.GetInt())), ScriptPosition);
delete this;
return x;
}