mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-12-15 07:01:10 +00:00
Don't free non-registers.
- Fixed: ExpEmit::Free() would try to free REGT_NIL registers, which don't really exist
This commit is contained in:
parent
00274c5e4c
commit
9044ac9503
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ ExpEmit::ExpEmit(VMFunctionBuilder *build, int type)
|
|||
|
||||
void ExpEmit::Free(VMFunctionBuilder *build)
|
||||
{
|
||||
if (!Fixed && !Konst)
|
||||
if (!Fixed && !Konst && RegType <= REGT_TYPE)
|
||||
{
|
||||
build->Registers[RegType].Return(RegNum, 1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue