aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/GameObject.cpp1
-rw-r--r--src/game/SpellHandler.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp
index 9afe4aa35f7..9bc9b1d44e0 100644
--- a/src/game/GameObject.cpp
+++ b/src/game/GameObject.cpp
@@ -490,6 +490,7 @@ void GameObject::AddUniqueUse(Player* player)
void GameObject::Delete()
{
+ assert (!GetOwnerGUID());
SendObjectDeSpawnAnim(GetGUID());
SetGoState(GO_STATE_READY);
diff --git a/src/game/SpellHandler.cpp b/src/game/SpellHandler.cpp
index 0e9261598a8..74313eaa38b 100644
--- a/src/game/SpellHandler.cpp
+++ b/src/game/SpellHandler.cpp
@@ -359,7 +359,7 @@ void WorldSession::HandleCastSpellOpcode(WorldPacket& recvPacket)
}
Spell *spell = new Spell(mover, spellInfo, false);
- spell->m_cast_count = ++cast_count; // set count of casts
+ spell->m_cast_count = cast_count; // set count of casts
spell->prepare(&targets);
}