summaryrefslogtreecommitdiff
path: root/src/newgrf_station.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-05-14 12:36:31 +0000
committerfrosch <frosch@openttd.org>2011-05-14 12:36:31 +0000
commit930d0c97021d9ec9d3acf37d916b236de0c1ca3a (patch)
treec12567d08146c12154d7325a51b01bebeb344efb /src/newgrf_station.cpp
parenta63b22991d4df2862009efc745dd2e7adb4e395d (diff)
downloadopenttd-930d0c97021d9ec9d3acf37d916b236de0c1ca3a.tar.xz
(svn r22452) -Fix (r18708): Zero register 0x100 as specified before resolving custom station foundations.
Diffstat (limited to 'src/newgrf_station.cpp')
-rw-r--r--src/newgrf_station.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp
index fd7a730dd..4cc68e2a4 100644
--- a/src/newgrf_station.cpp
+++ b/src/newgrf_station.cpp
@@ -613,6 +613,7 @@ SpriteID GetCustomStationFoundationRelocation(const StationSpec *statspec, const
NewStationResolver(&object, statspec, st, tile);
object.callback_param1 = 2; // Indicate we are resolving the foundation sprites
+ ClearRegister(0x100);
group = ResolveStation(&object);
if (group == NULL || group->type != SGT_RESULT) return 0;
return group->GetResult() + GetRegister(0x100);