Skip to content

Commit

Permalink
Typo fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinnegatamante committed Apr 17, 2021
1 parent c5f8f20 commit 6f57261
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/luaRegistry.cpp
Expand Up @@ -91,11 +91,11 @@ static int lua_setkey(lua_State *L){
sceRegMgrSetKeyInt(cat, name, val);
break;
case TYPE_STRING:
buf = size ? luaL_checklstring(L, 4, &size) : luaL_checkstring(L, 4);
buf = size ? luaL_checkstring(L, 4) : luaL_checklstring(L, 4, &size);
sceRegMgrSetKeyStr(cat, name, buf, size);
break;
default:
buf = size ? luaL_checklstring(L, 4, &size) : luaL_checkstring(L, 4);
buf = size ? luaL_checkstring(L, 4) : luaL_checklstring(L, 4, &size);
sceRegMgrSetKeyBin(cat, name, buf, size);
break;
}
Expand Down

0 comments on commit 6f57261

Please sign in to comment.