[4.9.0] A_ChangeModel non-existent modeldef causes engine freeze
Posted: Mon Nov 14, 2022 3:12 am
If I specify a invalid modeldef to use via A_ChangeModel, the engine will lock up/freeze and I have to kill gzdoom via Task Manager.
I would prefer if it printed an error message instead. Saying the modeldef specified doesn't exist or something.
Load this zscript example for yourself, summon Test, close the console and gzdoom should freeze:
I would prefer if it printed an error message instead. Saying the modeldef specified doesn't exist or something.
Load this zscript example for yourself, summon Test, close the console and gzdoom should freeze:
Code: Select all
version "4.9.0"
class Test : Actor
{
States
{
Spawn:
PLAY A -1 NoDelay A_ChangeModel("bogus");
Stop;
}
}