Fixed a typo in FxBoolCast::Emit

This commit is contained in:
Leonard2 2016-08-03 19:37:19 +02:00 committed by Christoph Oelckers
parent 73d0ed78fe
commit 01fb2eaecc

View file

@ -414,7 +414,7 @@ ExpEmit FxBoolCast::Emit(VMFunctionBuilder *build)
{
build->Emit(OP_EQF_K, 1, from.RegNum, build->GetConstantFloat(0.));
}
else if (from.RegNum == REGT_POINTER)
else if (from.RegType == REGT_POINTER)
{
build->Emit(OP_EQA_K, 1, from.RegNum, build->GetConstantAddress(nullptr, ATAG_GENERIC));
}