Cleanup: Use std::vector in RealSpriteGroup.

This commit is contained in:
Peter Nelson
2021-05-01 23:58:18 +01:00
committed by PeterN
parent e097c83c83
commit f785a70a2b
11 changed files with 21 additions and 35 deletions

View File

@@ -29,8 +29,8 @@ struct CargoResolverObject : public ResolverObject {
{
/* Cargo action 2s should always have only 1 "loaded" state, but some
* times things don't follow the spec... */
if (group->num_loaded > 0) return group->loaded[0];
if (group->num_loading > 0) return group->loading[0];
if (!group->loaded.empty()) return group->loaded[0];
if (!group->loading.empty()) return group->loading[0];
return nullptr;
}