From 3661e479d956c0191dc3242a8eda742e2ffce836 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 7 Nov 2016 23:29:54 +0100 Subject: [PATCH] - fixed: Runtime conversion of names to classes used the wrong argument to check the class type. --- src/scripting/codegeneration/codegen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/codegeneration/codegen.cpp b/src/scripting/codegeneration/codegen.cpp index 56691208f..0972ed002 100644 --- a/src/scripting/codegeneration/codegen.cpp +++ b/src/scripting/codegeneration/codegen.cpp @@ -8001,7 +8001,7 @@ int BuiltinNameToClass(VMFrameStack *stack, VMValue *param, TArray &def FName clsname = ENamedName(param[0].i); const PClass *cls = PClass::FindClass(clsname); - const PClass *desttype = reinterpret_cast(param[0].a); + const PClass *desttype = reinterpret_cast(param[1].a); if (!cls->IsDescendantOf(desttype)) {