- fixed: menu delegate class error message referenced the wrong gameinfo property

This commit is contained in:
Blue Shadow 2021-10-23 09:09:34 +03:00 committed by Christoph Oelckers
parent 1c3e0f1a75
commit 6799566dc2

View file

@ -1312,7 +1312,7 @@ void SetDefaultMenuColors()
cls = PClass::FindClass(gameinfo.MenuDelegateClass); cls = PClass::FindClass(gameinfo.MenuDelegateClass);
if (!cls) if (!cls)
I_FatalError("%s: Undefined menu delegate class", gameinfo.HelpMenuClass.GetChars()); I_FatalError("%s: Undefined menu delegate class", gameinfo.MenuDelegateClass.GetChars());
if (!cls->IsDescendantOf("MenuDelegateBase")) if (!cls->IsDescendantOf("MenuDelegateBase"))
I_FatalError("'%s' does not inherit from MenuDelegateBase", gameinfo.MenuDelegateClass.GetChars()); I_FatalError("'%s' does not inherit from MenuDelegateBase", gameinfo.MenuDelegateClass.GetChars());
menuDelegate = cls->CreateNew(); menuDelegate = cls->CreateNew();