fixed two valgrind warnings while saving lua state

This commit is contained in:
Pawel Kolodziejski 2008-07-22 12:58:04 +00:00
parent b584ef5f21
commit 223ba3078a
2 changed files with 2 additions and 2 deletions

View file

@ -153,7 +153,7 @@ void lua_Save(SaveRestoreFunc saveFunc) {
saveFunc(&tempHash->htag, sizeof(int32));
for (i = 0; i < tempHash->nhash; i++) {
Node *newNode = &tempHash->node[i];
if ((newNode->val.ttype != LUA_T_NIL) && (newNode->ref.ttype != LUA_T_NIL)) {
if ((newNode->ref.ttype != LUA_T_NIL) && (newNode->val.ttype != LUA_T_NIL)) {
saveObjectValue(&tempHash->node[i].ref, saveFunc);
saveObjectValue(&tempHash->node[i].val, saveFunc);
}