Move persistent memory outside of the RAM #483

This commit is contained in:
BADIM-PC\Vadim committed 2017-12-27 12:51:13 +03:00
1 parent bac3a9c3b6
commit 9786c6dcc5
8 files changed
+26 -25

No files matched your search

+2 -2
View File
@@ -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);