- fixed: Runtime conversion of names to classes used the wrong argument to check the class type.

This commit is contained in:
Christoph Oelckers 2016-11-07 23:29:54 +01:00
parent aac931192b
commit 3661e479d9

View file

@ -8001,7 +8001,7 @@ int BuiltinNameToClass(VMFrameStack *stack, VMValue *param, TArray<VMValue> &def
FName clsname = ENamedName(param[0].i); FName clsname = ENamedName(param[0].i);
const PClass *cls = PClass::FindClass(clsname); const PClass *cls = PClass::FindClass(clsname);
const PClass *desttype = reinterpret_cast<PClass *>(param[0].a); const PClass *desttype = reinterpret_cast<PClass *>(param[1].a);
if (!cls->IsDescendantOf(desttype)) if (!cls->IsDescendantOf(desttype))
{ {