diff options
author | megamage <none@none> | 2009-05-30 00:09:50 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-30 00:09:50 -0500 |
commit | 15633ec97e23c9cdf364a9c146150a76a496792e (patch) | |
tree | ef8c86bfebfb57b724d2cad6cb9e7869f0b66ea7 /src/game/ObjectMgr.cpp | |
parent | d3e1e1eae60caec9fd5962cf2912fcefb48a7809 (diff) |
*Fix spell Rune Strike.
--HG--
branch : trunk
Diffstat (limited to 'src/game/ObjectMgr.cpp')
-rw-r--r-- | src/game/ObjectMgr.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 440ee986f43..52a06ed7e57 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -2293,8 +2293,18 @@ void ObjectMgr::LoadPlayerInfo() continue; } - PlayerInfo* pInfo = &playerInfo[current_race][current_class]; - pInfo->spell.push_back(fields[2].GetUInt32()); + if(!current_race || !current_class) + { + uint32 min_race = current_race ? current_race : 1; + uint32 max_race = current_race ? current_race + 1 : MAX_RACES; + uint32 min_class = current_class ? current_class : 1; + uint32 max_class = current_class ? current_class + 1 : MAX_CLASSES; + for(uint32 r = min_race; r < max_race; ++r) + for(uint32 c = min_class; c < max_class; ++c) + playerInfo[r][c].spell.push_back(fields[2].GetUInt32()); + } + else + playerInfo[current_race][current_class].spell.push_back(fields[2].GetUInt32()); bar.step(); ++count; |