mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 15:22:15 +00:00
- fixed: Runtime conversion of names to classes used the wrong argument to check the class type.
This commit is contained in:
parent
aac931192b
commit
3661e479d9
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue