Move persistent memory outside of the RAM #483
This commit is contained in:
@@ -993,11 +993,11 @@ static s32 lua_pmem(lua_State *lua)
|
||||
|
||||
if(index < TIC_PERSISTENT_SIZE)
|
||||
{
|
||||
s32 val = memory->ram.persistent.data[index];
|
||||
s32 val = memory->persistent.data[index];
|
||||
|
||||
if(top >= 2)
|
||||
{
|
||||
memory->ram.persistent.data[index] = getLuaNumber(lua, 2);
|
||||
memory->persistent.data[index] = getLuaNumber(lua, 2);
|
||||
}
|
||||
|
||||
lua_pushinteger(lua, val);
|
||||
|
||||
Reference in New Issue
Block a user