diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf_spritegroup.cpp | 1 | ||||
-rw-r--r-- | src/newgrf_spritegroup.h | 3 |
2 files changed, 0 insertions, 4 deletions
diff --git a/src/newgrf_spritegroup.cpp b/src/newgrf_spritegroup.cpp index cf7139418..2d0ca71bb 100644 --- a/src/newgrf_spritegroup.cpp +++ b/src/newgrf_spritegroup.cpp @@ -143,7 +143,6 @@ const SpriteGroup *DeterministicSpriteGroup::Resolve(ResolverObject *object) con bool available = true; if (adjust->variable == 0x7E) { ResolverObject subobject = *object; - subobject.procedure_call = true; const SpriteGroup *subgroup = SpriteGroup::Resolve(adjust->subroutine, &subobject); if (subgroup == NULL) { value = CALLBACK_FAILED; diff --git a/src/newgrf_spritegroup.h b/src/newgrf_spritegroup.h index 928964be7..0f2ffbb3a 100644 --- a/src/newgrf_spritegroup.h +++ b/src/newgrf_spritegroup.h @@ -289,7 +289,6 @@ struct ResolverObject { CallbackID callback; uint32 callback_param1; uint32 callback_param2; - bool procedure_call; ///< true if we are currently resolving a var 0x7E procedure result. byte trigger; byte count; @@ -349,8 +348,6 @@ struct ResolverObject { void (*SetTriggers)(const struct ResolverObject*, int); uint32 (*GetVariable)(const struct ResolverObject*, byte, byte, bool*); const SpriteGroup *(*ResolveReal)(const struct ResolverObject*, const RealSpriteGroup*); - - ResolverObject() : procedure_call(false) { } }; #endif /* NEWGRF_SPRITEGROUP_H */ |