Repository navigation
- Fixed codestyle c++ action #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8960cc6
cd91181
528f8be
fbb25d2
2022317
ddef27d
89446d1
c3c1bf6
3875807
747b662
c443ff6
e613337
c6f9be3
0c6a5eb
ad49e47
44ab222
f0e0b0a
c7bc792
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -1067,7 +1067,7 @@ void GuildTaskMgr::SendCompletionMessage(Player* player, std::string const verb) | |||||
| void GuildTaskMgr::CheckKillTaskInternal(Player* player, Unit* victim) | ||||||
| { | ||||||
| ObjectGuid::LowType owner = player->GetGUID().GetCounter(); | ||||||
| if (victim->GetTypeId() != TYPEID_UNIT) | ||||||
| if (victim->IsCreature()) | ||||||
|
||||||
| if (victim->IsCreature()) | |
| if (!victim->IsCreature()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logic error: the function returns early if the victim IS a creature, but then tries to cast it to Creature*. This should be
if (!victim->IsCreature())to check if the victim is NOT a creature.