diff options
author | terkhen <terkhen@openttd.org> | 2011-06-12 20:32:52 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2011-06-12 20:32:52 +0000 |
commit | e127fca384892a22a393fe68c88d9291c5c1d18c (patch) | |
tree | 171a95ea61a2f3462caa4d124139dcdd59a3114d /src/newgrf_industrytiles.cpp | |
parent | d7ec492887674362c6a054b28faf26707932df64 (diff) | |
download | openttd-e127fca384892a22a393fe68c88d9291c5c1d18c.tar.xz |
(svn r22557) -Codechange: Remove constness from AnimationBase callbacks.
Diffstat (limited to 'src/newgrf_industrytiles.cpp')
-rw-r--r-- | src/newgrf_industrytiles.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_industrytiles.cpp b/src/newgrf_industrytiles.cpp index 397fecad7..da72c41cf 100644 --- a/src/newgrf_industrytiles.cpp +++ b/src/newgrf_industrytiles.cpp @@ -297,9 +297,9 @@ CommandCost PerformIndustryTileSlopeCheck(TileIndex ind_base_tile, TileIndex ind } /* Simple wrapper for GetHouseCallback to keep the animation unified. */ -uint16 GetSimpleIndustryCallback(CallbackID callback, uint32 param1, uint32 param2, const IndustryTileSpec *spec, const Industry *ind, TileIndex tile) +uint16 GetSimpleIndustryCallback(CallbackID callback, uint32 param1, uint32 param2, const IndustryTileSpec *spec, Industry *ind, TileIndex tile) { - return GetIndustryTileCallback(callback, param1, param2, spec - GetIndustryTileSpec(0), const_cast<Industry *>(ind), tile); + return GetIndustryTileCallback(callback, param1, param2, spec - GetIndustryTileSpec(0), ind, tile); } /** Helper class for animation control. */ |