aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorRichieSams2013-09-22 15:52:56 -0500
committerRichieSams2013-09-22 15:52:56 -0500
commit9d1b0e1f8bf991abb8eb0cd484ce5025757e1efe (patch)
tree87ab3e584369d7ba8567cad1fd912c9cc2feb42a /engines
parentdd0a6fe0e3258ca1e71051705b5603fd8d9ca3fd (diff)
downloadscummvm-rg350-9d1b0e1f8bf991abb8eb0cd484ce5025757e1efe.tar.gz
scummvm-rg350-9d1b0e1f8bf991abb8eb0cd484ce5025757e1efe.tar.bz2
scummvm-rg350-9d1b0e1f8bf991abb8eb0cd484ce5025757e1efe.zip
ZVISION: Assert that we don't exceed our hardcoded number of lines
Diffstat (limited to 'engines')
-rw-r--r--engines/zvision/string_manager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/zvision/string_manager.cpp b/engines/zvision/string_manager.cpp
index 8c7e0aaa3d..d00ea21369 100644
--- a/engines/zvision/string_manager.cpp
+++ b/engines/zvision/string_manager.cpp
@@ -111,6 +111,7 @@ void StringManager::parseStrFile(const Common::String &fileName) {
}
lineNumber++;
+ assert(lineNumber <= NUM_TEXT_LINES);
}
}