aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorQAston <none@none>2009-08-01 02:15:04 +0200
committerQAston <none@none>2009-08-01 02:15:04 +0200
commitbf326cd3a3b384881bf124f7c8ae987bc9ac583e (patch)
tree6e0c26a6da78b083042244ae785b679161aafeaa /src
parent129f6ce6f098430a98c0757a67afdc7767168ab0 (diff)
*Update world_spell_full with missing data.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Player.cpp6
-rw-r--r--src/game/Player.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 8cd21e1ef48..cc36be390d7 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -21398,3 +21398,9 @@ void Player::ResetMap()
Unit::ResetMap();
GetMapRef().unlink();
}
+
+void SetMap(Map * map)
+{
+ Unit::SetMap(map);
+ m_mapRef.link(map, this);
+}
diff --git a/src/game/Player.h b/src/game/Player.h
index d6d512a73a0..fa9e48e4e01 100644
--- a/src/game/Player.h
+++ b/src/game/Player.h
@@ -2123,7 +2123,7 @@ class TRINITY_DLL_SPEC Player : public Unit
MapReference &GetMapRef() { return m_mapRef; }
// Set map to player and add reference
- void SetMap(Map * map) {Unit::SetMap(map); assert (!m_currMap); m_mapRef.link(map, this);}
+ void SetMap(Map * map);
void ResetMap();
bool isAllowedToLoot(Creature* creature);