diff options
| author | megamage <none@none> | 2008-12-20 14:10:53 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2008-12-20 14:10:53 -0600 |
| commit | b7be6cb6da831b96ec9fae8442803f06ac3f7971 (patch) | |
| tree | c5f15e5c907538d3b06b67c7fbe47be8237a1f6f /src/game/SpellEffects.cpp | |
| parent | 5fd5da0123323a01731b674cc1c34410c1120d47 (diff) | |
*Fix build.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
| -rw-r--r-- | src/game/SpellEffects.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index f53338b023d..271b4ad68da 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -3466,10 +3466,8 @@ void Spell::EffectAddFarsight(uint32 i) dynObj->SetUInt32Value(DYNAMICOBJECT_BYTES, 0x80000002); m_caster->AddDynObject(dynObj); - CellPair pair = Trinity::ComputeCellPair(dynObj->GetPositionX(), dynObj->GetPositionY()); - Cell cell(pair); Map* map = dynObj->GetMap(); - map->EnsureGridLoadedForPlayer(cell, NULL, false); // In case the spell is casted into a different grid by player + map->LoadGrid(dynObj->GetPositionX(), dynObj->GetPositionY()); // In case the spell is casted into a different grid by player map->Add(dynObj); map->SwitchGridContainers(dynObj, true); // Needed for forwarding player packets dynObj->setActive(true); // Keep the grid updated even if there are no players in it |
