aboutsummaryrefslogtreecommitdiff
path: root/engines/m4/hotspot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/m4/hotspot.cpp')
-rw-r--r--engines/m4/hotspot.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/m4/hotspot.cpp b/engines/m4/hotspot.cpp
index a585a9af3d..a424d9fa23 100644
--- a/engines/m4/hotspot.cpp
+++ b/engines/m4/hotspot.cpp
@@ -258,7 +258,7 @@ void HotSpotList::loadHotSpots(Common::SeekableReadStream* hotspotStream, int ho
hotspotStream->read(buffer, strLength); // prep
str_upper(buffer);
- if (strlen(buffer) > 0 && strcmp(buffer, "--") != 0 && strcmp(buffer, "ON") != 0)
+ if (buffer[0] != '\0' && strcmp(buffer, "--") != 0 && strcmp(buffer, "ON") != 0)
currentHotSpot->setPrep(buffer);
else
currentHotSpot->setPrep(currentHotSpot->getVocab());