diff --git a/Source/Client/Mode/GameModeNotices.cpp b/Source/Client/Mode/GameModeNotices.cpp index 256c5f957..8fbbd8a99 100644 --- a/Source/Client/Mode/GameModeNotices.cpp +++ b/Source/Client/Mode/GameModeNotices.cpp @@ -978,7 +978,7 @@ void CGameMode::ReceiveEffectRemove(const unsigned char* data) { // OFFSET: 0x00D6E930 // FUNCTION: fn_22107 void CGameMode::ReceiveToggle128(int enabled) { - SetPetInfoAlert(enabled != 0); + g_session.SetPetInfoAlert(enabled != 0); } // OFFSET: 0x00D6E950 diff --git a/Source/Client/Mode/GameModePackets.cpp b/Source/Client/Mode/GameModePackets.cpp index 10632a1f5..fbc379503 100644 --- a/Source/Client/Mode/GameModePackets.cpp +++ b/Source/Client/Mode/GameModePackets.cpp @@ -6780,7 +6780,7 @@ __declspec(noinline) void CGameMode::ReceiveFeedOption(const unsigned char* pack *reinterpret_cast(g_session.feedOptions) = *reinterpret_cast(packet + 6); break; case 6: - SetPetInfoAlert(*reinterpret_cast(packet + 6) != 0); + g_session.SetPetInfoAlert(*reinterpret_cast(packet + 6) != 0); break; } } diff --git a/Source/Client/Session/Session.h b/Source/Client/Session/Session.h index d7ba72bd4..3183a6060 100644 --- a/Source/Client/Session/Session.h +++ b/Source/Client/Session/Session.h @@ -1034,6 +1034,7 @@ public: std::vector BuildSkillListReplayPacket(short id); void SetHomunculusAutoFeed(bool enabled); void SetPetAutoFeed(bool enabled); + void SetPetInfoAlert(bool enabled); void SendClientOption(unsigned char value); void SendHomunculusAutoFeedOption(unsigned char enabled); void SendPetAutoFeedOption(unsigned char enabled); diff --git a/Source/Contents/ClientState.cpp b/Source/Contents/ClientState.cpp index 2401aa351..b8c5736fc 100644 --- a/Source/Contents/ClientState.cpp +++ b/Source/Contents/ClientState.cpp @@ -986,7 +986,7 @@ void CSession::SetPetAutoFeed(bool enabled) { // OFFSET: 0x00E489C0 // FUNCTION: fn_24224 -void __stdcall SetPetInfoAlert(bool enabled) { +void CSession::SetPetInfoAlert(bool enabled) { std::string notice = LookupMessage(enabled ? 4357 : 4379); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(notice.c_str()), 0x64FFFF, 0, 0, 0); g_serviceOptions.Set(0x128, enabled);