Mercurial > hg > openttd
changeset 5622:b6656f3088b3 draft
(svn r8081) -Fix (r8075): Use a copy of the resolver object instead of the using the existing one. This fixes problems with the object scope setting.
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Fri, 12 Jan 2007 16:44:08 +0000 |
parents | 970ee503a184 |
children | 8d6c86a74f81 |
files | src/newgrf_spritegroup.cpp |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/newgrf_spritegroup.cpp +++ b/src/newgrf_spritegroup.cpp @@ -144,7 +144,8 @@ /* Try to get the variable. We shall assume it is available, unless told otherwise. */ bool available = true; if (adjust->variable == 0x7E) { - const SpriteGroup *subgroup = Resolve(adjust->subroutine, object); + ResolverObject subobject = *object; + const SpriteGroup *subgroup = Resolve(adjust->subroutine, &subobject); if (subgroup == NULL || subgroup->type != SGT_CALLBACK) { value = CALLBACK_FAILED; } else {