- scriptified parts of ListMenu.

This commit is contained in:
Christoph Oelckers 2017-02-18 18:35:44 +01:00
commit b7a5437af6
7 changed files with 190 additions and 219 deletions

View file

@ -294,7 +294,7 @@ static void ParseListMenuBody(FScanner &sc, DListMenuDescriptor *desc)
{
sc.MustGetString();
PClass *cls = PClass::FindClass(sc.String);
if (cls == nullptr || !cls->IsDescendantOf(RUNTIME_CLASS(DListMenu)))
if (cls == nullptr || !cls->IsDescendantOf("ListMenu"))
{
sc.ScriptError("Unknown menu class '%s'", sc.String);
}