Skip to content

Commit

Permalink
Hotfix Stable Event Protection(#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyackman authored Jul 18, 2024
1 parent 5456c7f commit 9944cbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/game/hooks/Protections/HandleScriptedGameEvent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "game/rdr/data/TickerEvents.hpp"
#include "game/rdr/data/StableEvents.hpp"
#include "game/backend/Players.hpp"
#include "game/backend/Self.hpp"

#include <network/CNetGamePlayer.hpp>
#include <network/CScriptedGameEvent.hpp>
Expand Down Expand Up @@ -105,7 +106,7 @@ namespace YimMenu::Hooks
}
case ScriptEvent::SCRIPT_EVENT_NET_STABLE_MOUNT:
{
if (event->m_Data[0])
if (event->m_Data[1] == Self::GetPlayer().GetId())
{
Notifications::Show("Protections",
std::format("Blocked stable event from {} ({})",
Expand Down

0 comments on commit 9944cbd

Please sign in to comment.