Fix unarchiving of mapheader_t userdata Lua variables

This commit is contained in:
Monster Iestyn 2018-10-21 15:15:54 +01:00
parent 445a6737ea
commit 87afae9cf5

View file

@ -853,7 +853,7 @@ static UINT8 UnArchiveValue(int TABLESINDEX)
LUA_PushUserdata(gL, &sectors[READUINT16(save_p)], META_SECTOR); LUA_PushUserdata(gL, &sectors[READUINT16(save_p)], META_SECTOR);
break; break;
case ARCH_MAPHEADER: case ARCH_MAPHEADER:
LUA_PushUserdata(gL, &sectors[READUINT16(save_p)], META_MAPHEADER); LUA_PushUserdata(gL, mapheaderinfo[READUINT16(save_p)], META_MAPHEADER);
break; break;
case ARCH_TEND: case ARCH_TEND:
return 1; return 1;