diff --git a/Source/Contents/CashEmotion/CashEmotionMgr.cpp b/Source/Contents/CashEmotion/CashEmotionMgr.cpp index 4d428c255..2cdf52ed3 100644 --- a/Source/Contents/CashEmotion/CashEmotionMgr.cpp +++ b/Source/Contents/CashEmotion/CashEmotionMgr.cpp @@ -1390,6 +1390,12 @@ CashEmotionPackRefresh CCashEmotionMgr::RefreshUnownedPacks() { return {changed, nextTime}; } +// OFFSET: 0x0059CD60 +// FUNCTION: fn_02980 +void LuaScript::Register(std::string name, int (*function)(lua_State*)) { + lua_register(this->m_state, name.c_str(), function); +} + // OFFSET: 0x0059CDE0 // FUNCTION: fn_02981 void CCashEmotionMgr::SetServerTime(int param) { diff --git a/Source/Script/LuaScript.cpp b/Source/Script/LuaScript.cpp index 26635241d..5dadddc7d 100644 --- a/Source/Script/LuaScript.cpp +++ b/Source/Script/LuaScript.cpp @@ -1285,12 +1285,6 @@ int LuaScript::TableInteger(std::string table, int keyType, std::intptr_t key) { return value; } -// OFFSET: 0x0059CD60 -// FUNCTION: fn_02980 -void LuaScript::Register(std::string name, int (*function)(lua_State*)) { - lua_register(this->m_state, name.c_str(), function); -} - // OFFSET: 0x00A91200 // FUNCTION: fn_17157 int UIWindowMgr::GetHotkeyBehavior() {