(svn r12139) -Fix (r12124): The global variable value should be returned, not the variable.
authorpeter1138
Thu, 14 Feb 2008 11:58:36 +0000
changeset 9057 f9931abf5f55
parent 9056 613efc3d2ddb
child 9058 b9c3fec968b8
(svn r12139) -Fix (r12124): The global variable value should be returned, not the variable.
src/newgrf_spritegroup.cpp
--- a/src/newgrf_spritegroup.cpp	Thu Feb 14 10:19:16 2008 +0000
+++ b/src/newgrf_spritegroup.cpp	Thu Feb 14 11:58:36 2008 +0000
@@ -84,7 +84,7 @@
 {
 	/* 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) {