aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnubisss <none@none>2009-08-28 14:51:37 +0200
committerAnubisss <none@none>2009-08-28 14:51:37 +0200
commit183e4c4bf9d8bc4dc57dcb61359ac07cc433971d (patch)
treea706426bc24ebeaba29c8005654e4eac7ef49849 /src
parente3eecc4de5ac34d042577df8e3937465ed297938 (diff)
*Fix compile.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Player.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 41ad8b23982..df122d1f96e 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -19397,11 +19397,13 @@ void Player::resetSpells(bool myClassOnly)
// and we can't use original map for safe iterative with visit each spell at loop end
PlayerSpellMap smap = GetSpellMap();
+ uint32 family;
+
if(myClassOnly){
ChrClassesEntry const* clsEntry = sChrClassesStore.LookupEntry(m_session->GetPlayer()->getClass());
if(!clsEntry)
return;
- uint32 family = clsEntry->spellfamily;
+ family = clsEntry->spellfamily;
}
for(PlayerSpellMap::const_iterator iter = smap.begin();iter != smap.end(); ++iter)