fix clang build warning

This commit is contained in:
Enno Rehling 2017-09-22 19:13:42 +02:00
parent f350b81d51
commit 1203b6e23a
1 changed files with 3 additions and 2 deletions

View File

@ -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);