1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-26 16:09:10 +00:00

(svn r12139) -Fix (r12124): The global variable value should be returned, not the variable.

This commit is contained in:
2008-02-14 11:58:36 +00:00
parent bb81de3c4c
commit 859d768bb7

View File

@@ -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) {