Mercurial > hg > openttd
changeset 8561:75331afa9549 draft
(svn r12139) -Fix (r12124): The global variable value should be returned, not the variable.
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Thu, 14 Feb 2008 11:58:36 +0000 |
parents | cbd74b092cdf |
children | f539be5f3bd3 |
files | src/newgrf_spritegroup.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/newgrf_spritegroup.cpp +++ b/src/newgrf_spritegroup.cpp @@ -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) {