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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user