summaryrefslogtreecommitdiff
path: root/src/newgrf_roadtype.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/newgrf_roadtype.cpp')
-rw-r--r--src/newgrf_roadtype.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_roadtype.cpp b/src/newgrf_roadtype.cpp
index 025d03bb6..9243bf77e 100644
--- a/src/newgrf_roadtype.cpp
+++ b/src/newgrf_roadtype.cpp
@@ -60,8 +60,8 @@
/* virtual */ const SpriteGroup *RoadTypeResolverObject::ResolveReal(const RealSpriteGroup *group) const
{
- if (group->num_loading > 0) return group->loading[0];
- if (group->num_loaded > 0) return group->loaded[0];
+ if (!group->loading.empty()) return group->loading[0];
+ if (!group->loaded.empty()) return group->loaded[0];
return nullptr;
}