aboutsummaryrefslogtreecommitdiff
path: root/kyra
diff options
context:
space:
mode:
Diffstat (limited to 'kyra')
-rw-r--r--kyra/script.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/kyra/script.cpp b/kyra/script.cpp
index ed071df14c..755ca58925 100644
--- a/kyra/script.cpp
+++ b/kyra/script.cpp
@@ -413,10 +413,7 @@ void VMContext::loadScript(const char* file) {
uint8 chunkName[sizeof("EMC2ORDR") + 1];
// so lets look for our chunks :)
- while(true) {
- if (script.eof()) {
- break;
- }
+ while (!script.eos()) {
// lets read only the first 4 chars
script.read(chunkName, sizeof(uint8) * 4);
chunkName[4] = '\0';