We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59bea55 commit 58ca9b6Copy full SHA for 58ca9b6
1 file changed
methods/CMangos/PlayerMethods.h
@@ -1704,7 +1704,9 @@ namespace LuaPlayer
1704
#else
1705
FactionEntry const* factionEntry = sFactionStore.LookupEntry(faction);
1706
#endif
1707
- player->GetReputationMgr().SetReputation(factionEntry, value);
+ if (factionEntry != nullptr)
1708
+ player->GetReputationMgr().SetReputation(factionEntry, value);
1709
+
1710
return 0;
1711
}
1712
0 commit comments