1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-12 09:09:09 +00:00

(svn r24695) -Fix/Cleanup: Remove remaining (incorrect) usages of ResolverObject::scope and count.

This commit is contained in:
frosch
2012-11-11 12:57:27 +00:00
parent 55cff8407f
commit b65ece1ea9
4 changed files with 19 additions and 27 deletions

View File

@@ -1301,7 +1301,7 @@ void FillNewGRFVehicleCache(const Vehicle *v)
/* Only resolve when the cache isn't valid. */
if (HasBit(v->grf_cache.cache_valid, cache_entries[i][1])) continue;
bool stub;
ro.GetScope(ro.scope)->GetVariable(cache_entries[i][0], 0, &stub);
ro.GetScope(VSG_SCOPE_SELF)->GetVariable(cache_entries[i][0], 0, &stub);
}
/* Make sure really all bits are set. */