summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-02-14 11:58:36 +0000
committerpeter1138 <peter1138@openttd.org>2008-02-14 11:58:36 +0000
commitbe47b475072c0755b80e0a7c9898eed11678ac6f (patch)
tree1af83e1dad73cd3488cf0e42785f99d85495dcab /src
parente081e0712f2346ac9aea0d2ce8136c6c7565ae3b (diff)
downloadopenttd-be47b475072c0755b80e0a7c9898eed11678ac6f.tar.xz
(svn r12139) -Fix (r12124): The global variable value should be returned, not the variable.
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_spritegroup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_spritegroup.cpp b/src/newgrf_spritegroup.cpp
index a5e7077e8..376078cad 100644
--- a/src/newgrf_spritegroup.cpp
+++ b/src/newgrf_spritegroup.cpp
@@ -84,7 +84,7 @@ static inline uint32 GetVariable(const ResolverObject *object, byte variable, by
{
/* First handle variables common with Action7/9/D */
uint32 value;
- if (GetGlobalVariable(variable, &value)) return variable;
+ if (GetGlobalVariable(variable, &value)) return value;
/* Non-common variable */
switch (variable) {