summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/newgrf_spritegroup.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/newgrf_spritegroup.cpp b/src/newgrf_spritegroup.cpp
index 23521c360..5edf44b28 100644
--- a/src/newgrf_spritegroup.cpp
+++ b/src/newgrf_spritegroup.cpp
@@ -155,6 +155,8 @@ const SpriteGroup *DeterministicSpriteGroup::Resolve(ResolverObject *object) con
/* Reset values to current scope.
* Note: 'last_value' and 'reseed' are shared between the main chain and the procedure */
object->scope = this->var_scope;
+ } else if (adjust->variable == 0x7B) {
+ value = GetVariable(object, adjust->parameter, last_value, &available);
} else {
value = GetVariable(object, adjust->variable, adjust->parameter, &available);
}