mirror of https://github.com/OpenTTD/OpenTTD
(svn r12139) -Fix (r12124): The global variable value should be returned, not the variable.
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 */
|
/* First handle variables common with Action7/9/D */
|
||||||
uint32 value;
|
uint32 value;
|
||||||
if (GetGlobalVariable(variable, &value)) return variable;
|
if (GetGlobalVariable(variable, &value)) return value;
|
||||||
|
|
||||||
/* Non-common variable */
|
/* Non-common variable */
|
||||||
switch (variable) {
|
switch (variable) {
|
||||||
|
|
Loading…
Reference in New Issue