Fix a crash introduced in 6ad4044f05 (I should be more attentive)

This commit is contained in:
Azazel
2011-03-14 10:01:36 +06:00
parent 7b62bfc1c5
commit 1eed7c53a9
+1 -1
View File
@@ -455,7 +455,7 @@ inline void KillRewarder::_InitGroupData()
} }
// 2.5. _isFullXP - flag identifying that for all group members victim is not gray, // 2.5. _isFullXP - flag identifying that for all group members victim is not gray,
// so 100% XP will be rewarded (50% otherwise). // so 100% XP will be rewarded (50% otherwise).
_isFullXP = (_maxLevel == _maxNotGrayMember->getLevel()); _isFullXP = _maxNotGrayMember && (_maxLevel == _maxNotGrayMember->getLevel());
} }
else else
_count = 1; _count = 1;