aboutsummaryrefslogtreecommitdiff
path: root/src/game/GridNotifiers.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-03 10:48:28 -0500
committermegamage <none@none>2009-05-03 10:48:28 -0500
commit2a725194b67539a917898fd6b45625eb52154303 (patch)
treec8b3d578e9c57b9cd07ab066719f2da342d46e89 /src/game/GridNotifiers.cpp
parent99cc10d0d71b8d9fff0e2fae981a0602d7634959 (diff)
parenteb3c3a8fb4a4bac2e01222bfd25efd80fc792ba2 (diff)
*Merge.
--HG-- branch : trunk
Diffstat (limited to 'src/game/GridNotifiers.cpp')
-rw-r--r--src/game/GridNotifiers.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/GridNotifiers.cpp b/src/game/GridNotifiers.cpp
index fe18dc35840..091fb1c293a 100644
--- a/src/game/GridNotifiers.cpp
+++ b/src/game/GridNotifiers.cpp
@@ -214,7 +214,8 @@ ObjectUpdater::Visit(GridRefManager<T> &m)
{
for(typename GridRefManager<T>::iterator iter = m.begin(); iter != m.end(); ++iter)
{
- iter->getSource()->Update(i_timeDiff);
+ if(iter->getSource()->IsInWorld())
+ iter->getSource()->Update(i_timeDiff);
}
}