Skip to content
Snippets Groups Projects
Commit 49cceda1 authored by Monster Iestyn's avatar Monster Iestyn
Browse files

Do the same with writing ARCH_FFLOOR values in Lua archiving code (reading was...

Do the same with writing ARCH_FFLOOR values in Lua archiving code (reading was already dealt with years ago)
parent 7dda5f6b
No related branches found
No related tags found
2 merge requests!985Shaders next merge,!894Netgame $$$.sav code cleanup
...@@ -1010,16 +1010,8 @@ static UINT8 ArchiveValue(int TABLESINDEX, int myindex) ...@@ -1010,16 +1010,8 @@ static UINT8 ArchiveValue(int TABLESINDEX, int myindex)
if (!rover) if (!rover)
WRITEUINT8(save_p, ARCH_NULL); WRITEUINT8(save_p, ARCH_NULL);
else { else {
ffloor_t *r2; UINT16 i = P_GetFFloorID(rover);
UINT16 i = 0; if (i == UINT16_MAX) // invalid ID
// search for id
for (r2 = rover->target->ffloors; r2; r2 = r2->next)
{
if (r2 == rover)
break;
i++;
}
if (!r2)
WRITEUINT8(save_p, ARCH_NULL); WRITEUINT8(save_p, ARCH_NULL);
else else
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment