From 859d768bb794e73abd24a5eb788e15c8062c14cd Mon Sep 17 00:00:00 2001 From: peter1138 Date: Thu, 14 Feb 2008 11:58:36 +0000 Subject: (svn r12139) -Fix (r12124): The global variable value should be returned, not the variable. --- src/newgrf_spritegroup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3-54-g00ecf