Fix problem if last card is marked
parent
cb2673a6f5
commit
6e4b4d5830
|
@ -45,7 +45,7 @@ void old_space::clear_allot_markers()
|
|||
cell old_space::next_object_after(factor_vm *myvm, cell scan)
|
||||
{
|
||||
cell size = myvm->untagged_object_size((object *)scan);
|
||||
if(scan + size < end)
|
||||
if(scan + size < here)
|
||||
return scan + size;
|
||||
else
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue