Added two new stack disciplines to LuaStack
This commit is contained in:
@@ -224,7 +224,7 @@ void World::patch_tanclass(StreamBuffer *sb, DebugCollector *dbc) {
|
||||
DebugBlock dbb(dbc, "patch_tanclass");
|
||||
lua_State *L = state();
|
||||
LuaVar tangibles, tab, meta, sclass;
|
||||
LuaStack LS(L, tangibles, tab, meta, sclass);
|
||||
LuaOldStack LS(L, tangibles, tab, meta, sclass);
|
||||
LS.rawget(tangibles, LuaRegistry, "tangibles");
|
||||
|
||||
int nmodified = sb->read_int32();
|
||||
@@ -249,8 +249,8 @@ void World::diff_tanclass(int64_t actor_id, World *master, StreamBuffer *xsb) {
|
||||
StreamBuffer tsb;
|
||||
|
||||
LuaVar stangibles, mtangibles, stab, mtab, smeta, mmeta, sclass, mclass;
|
||||
LuaStack SLS(state(), stangibles, stab, smeta, sclass);
|
||||
LuaStack MLS(master->state(), mtangibles, mtab, mmeta, mclass);
|
||||
LuaOldStack SLS(state(), stangibles, stab, smeta, sclass);
|
||||
LuaOldStack MLS(master->state(), mtangibles, mtab, mmeta, mclass);
|
||||
SLS.rawget(stangibles, LuaRegistry, "tangibles");
|
||||
MLS.rawget(mtangibles, LuaRegistry, "tangibles");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user