summaryrefslogtreecommitdiff
path: root/src/newgrf_canal.cpp
diff options
context:
space:
mode:
authorPeter Nelson <peter1138@openttd.org>2021-05-01 23:58:18 +0100
committerPeterN <peter@fuzzle.org>2021-05-02 09:41:01 +0100
commitf785a70a2bc08eaefcb1e2a43b8e6d36a154a00e (patch)
tree3d2b4cc2a61484c6ea6876b4c8eda2a85ab408d7 /src/newgrf_canal.cpp
parente097c83c83ac3be81041a67f8d641650045502fb (diff)
downloadopenttd-f785a70a2bc08eaefcb1e2a43b8e6d36a154a00e.tar.xz
Cleanup: Use std::vector in RealSpriteGroup.
Diffstat (limited to 'src/newgrf_canal.cpp')
-rw-r--r--src/newgrf_canal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_canal.cpp b/src/newgrf_canal.cpp
index 7295e5551..6b3c9b3d4 100644
--- a/src/newgrf_canal.cpp
+++ b/src/newgrf_canal.cpp
@@ -111,7 +111,7 @@ struct CanalResolverObject : public ResolverObject {
/* virtual */ const SpriteGroup *CanalResolverObject::ResolveReal(const RealSpriteGroup *group) const
{
- if (group->num_loaded == 0) return nullptr;
+ if (group->loaded.empty()) return nullptr;
return group->loaded[0];
}