From 1203b6e23a2706df7bf80d31710743fa0abcb064 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 22 Sep 2017 19:13:42 +0200 Subject: [PATCH] fix clang build warning --- src/kernel/connection.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/kernel/connection.c b/src/kernel/connection.c index 6ae173271..b630429fe 100644 --- a/src/kernel/connection.c +++ b/src/kernel/connection.c @@ -612,15 +612,16 @@ int read_borders(gamedata *data) border_type *type; READ_TOK(store, zText, sizeof(zText)); - if (!strcmp(zText, "end")) + if (!strcmp(zText, "end")) { break; + } + READ_INT(store, &bid); type = find_bordertype(zText); if (type == NULL) { log_error("[read_borders] connection %d type %s is not registered", bid, zText); assert(type || !"connection type not registered"); } - READ_INT(store, &bid); READ_INT(store, &fid); READ_INT(store, &tid); from = findregionbyid(fid);