(svn r26173) -Change: [NewGRF] Reset the temporary storage registers for every sprite resolving.

This commit is contained in:
frosch
2013-12-23 18:08:36 +00:00
parent 3eea1befa7
commit a9e8d7a361
2 changed files with 5 additions and 10 deletions

View File

@@ -33,6 +33,9 @@ TemporaryStorageArray<int32, 0x110> _temp_store;
/* static */ const SpriteGroup *SpriteGroup::Resolve(const SpriteGroup *group, ResolverObject &object, bool top_level)
{
if (group == NULL) return NULL;
if (top_level) {
_temp_store.ClearChanges();
}
return group->Resolve(object);
}