Core/Guilds: Fixed Guild XP per day cap.

This commit is contained in:
Warpten committed 2013-06-07 22:33:46 +03:00
1 parent c3c66060f6
commit 732a58c57c
1 file changed
+1 -1
+1 -1
View File
@@ -3465,7 +3465,7 @@ void Guild::GiveXP(uint32 xp, Player* source)
if (GetLevel() >= sWorld->getIntConfig(CONFIG_GUILD_MAX_LEVEL))
xp = 0; // SMSG_GUILD_XP_GAIN is always sent, even for no gains
if (GetLevel() >= GUILD_EXPERIENCE_UNCAPPED_LEVEL)
if (GetLevel() < GUILD_EXPERIENCE_UNCAPPED_LEVEL)
xp = std::min(xp, sWorld->getIntConfig(CONFIG_GUILD_DAILY_XP_CAP) - uint32(_todayExperience));
WorldPacket data(SMSG_GUILD_XP_GAIN, 8);