diff options
author | Peter Nelson <peter1138@openttd.org> | 2021-05-01 23:58:18 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2021-05-02 09:41:01 +0100 |
commit | f785a70a2bc08eaefcb1e2a43b8e6d36a154a00e (patch) | |
tree | 3d2b4cc2a61484c6ea6876b4c8eda2a85ab408d7 /src/newgrf_cargo.cpp | |
parent | e097c83c83ac3be81041a67f8d641650045502fb (diff) | |
download | openttd-f785a70a2bc08eaefcb1e2a43b8e6d36a154a00e.tar.xz |
Cleanup: Use std::vector in RealSpriteGroup.
Diffstat (limited to 'src/newgrf_cargo.cpp')
-rw-r--r-- | src/newgrf_cargo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_cargo.cpp b/src/newgrf_cargo.cpp index c2859b71e..105a2b252 100644 --- a/src/newgrf_cargo.cpp +++ b/src/newgrf_cargo.cpp @@ -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; } |