aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/lure/surface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/lure/surface.cpp b/engines/lure/surface.cpp
index c175b3d687..e2a987ab5d 100644
--- a/engines/lure/surface.cpp
+++ b/engines/lure/surface.cpp
@@ -142,7 +142,7 @@ void Surface::writeSubstring(uint16 x, uint16 y, Common::String line, int len,
const char *sPtr = line.c_str();
- for (int index = 0; (index < len) && (*sPtr != NULL); ++index, ++sPtr) {
+ for (int index = 0; (index < len) && (*sPtr != '\0'); ++index, ++sPtr) {
writeChar(x, y, (uint8) *sPtr, transparent, colour);
// Move to after the character in preparation for the next character