mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r12139) -Fix (r12124): The global variable value should be returned, not the variable.
This commit is contained in:
parent
bb81de3c4c
commit
859d768bb7
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue