summaryrefslogtreecommitdiff
path: root/src/object_cmd.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2011-06-12 20:32:52 +0000
committerterkhen <terkhen@openttd.org>2011-06-12 20:32:52 +0000
commite127fca384892a22a393fe68c88d9291c5c1d18c (patch)
tree171a95ea61a2f3462caa4d124139dcdd59a3114d /src/object_cmd.cpp
parentd7ec492887674362c6a054b28faf26707932df64 (diff)
downloadopenttd-e127fca384892a22a393fe68c88d9291c5c1d18c.tar.xz
(svn r22557) -Codechange: Remove constness from AnimationBase callbacks.
Diffstat (limited to 'src/object_cmd.cpp')
-rw-r--r--src/object_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object_cmd.cpp b/src/object_cmd.cpp
index 2f8dcda03..4425d1118 100644
--- a/src/object_cmd.cpp
+++ b/src/object_cmd.cpp
@@ -526,7 +526,7 @@ static void TileLoop_Object(TileIndex tile)
{
const ObjectSpec *spec = ObjectSpec::GetByTile(tile);
if (spec->flags & OBJECT_FLAG_ANIMATION) {
- const Object *o = Object::GetByTile(tile);
+ Object *o = Object::GetByTile(tile);
TriggerObjectTileAnimation(o, tile, OAT_TILELOOP, spec);
if (o->location.tile == tile) TriggerObjectAnimation(o, OAT_256_TICKS, spec);
}