aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/jacl/loader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/glk/jacl/loader.cpp')
-rw-r--r--engines/glk/jacl/loader.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/glk/jacl/loader.cpp b/engines/glk/jacl/loader.cpp
index c969facd36..e5ad3d2522 100644
--- a/engines/glk/jacl/loader.cpp
+++ b/engines/glk/jacl/loader.cpp
@@ -319,6 +319,7 @@ void read_gamefile() {
if (objects == MAX_OBJECTS) {
log_error(MAXIMUM_EXCEEDED, PLUS_STDERR);
terminate(47);
+ return;
} else {
if ((object[objects] = (struct object_type *)
malloc(sizeof(struct object_type))) == NULL)
@@ -614,6 +615,7 @@ void read_gamefile() {
if (errors) {
totalerrs(errors);
terminate(48);
+ return;
}
/*************************************************************************
@@ -995,6 +997,7 @@ void read_gamefile() {
if (errors) {
totalerrs(errors);
terminate(48);
+ return;
}
}