Decompile fn_01133 (CLuaInstance::SetGlobal)

Batch #3967 by Yommy: 0 byte-identical, 1 confirmed by peer review.

- fn_01133 CLuaInstance::SetGlobal: logic confirmed by peer review

Peer-reviewed-by: youko, tayoba
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-10-30 00:23:30 +00:00
commit ea2681102b
2 changed files with 3 additions and 3 deletions

View file

@ -109,8 +109,8 @@ void CLuaInstance::SetGlobal(const std::string& name, bool value) {
// OFFSET: 0x005228B0
// FUNCTION: fn_01133
void CLuaInstance::SetGlobal(const std::string& name, int value) {
lua_pushinteger(this->m_state, value);
void CLuaInstance::SetGlobal(const std::string& name, lua_CFunction function) {
lua_pushcfunction(this->m_state, function);
lua_setglobal(this->m_state, name.c_str());
}