Get rid of several instances of LuaOldStack
This commit is contained in:
@@ -36,7 +36,7 @@ void LuaSnap::serialize(StreamBuffer *sb) {
|
||||
// lua variables that we'll need.
|
||||
LuaVar key, value;
|
||||
LuaRet permstable, regcopy;
|
||||
LuaOldStack LS(state_, permstable, regcopy, key, value);
|
||||
LuaDefStack LS(state_, permstable, regcopy, key, value);
|
||||
|
||||
// Construct a copy of the registry table.
|
||||
LS.set(regcopy, LuaNewTable);
|
||||
@@ -93,7 +93,7 @@ void LuaSnap::deserialize(StreamBuffer *sb) {
|
||||
// Set up a stack frame.
|
||||
LuaArg permstable, regcopy;
|
||||
LuaVar key, value;
|
||||
LuaOldStack LS(state_, permstable, regcopy, key, value);
|
||||
LuaDefStack LS(state_, permstable, regcopy, key, value);
|
||||
|
||||
assert(LS.istable(regcopy));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user