From 4efecf77c15053426f6084a6cfb63bdfdbeab521 Mon Sep 17 00:00:00 2001 From: Rumble Date: Mon, 30 Dec 2013 20:31:04 -0500 Subject: [PATCH] Update objsave.c --- src/objsave.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/objsave.c b/src/objsave.c index b9e6693..8b48560 100644 --- a/src/objsave.c +++ b/src/objsave.c @@ -1204,10 +1204,11 @@ static int Crash_load_objs(struct char_data *ch) { mudlog(NRM, MAX(LVL_IMMORT, GET_INVIS_LEV(ch)), TRUE, "%s entering game with no equipment.", GET_NAME(ch)); return 1; } - if (get_line(fl, line)) + + if (!get_line(fl, line)) mudlog(NRM, MAX(LVL_IMMORT, GET_INVIS_LEV(ch)), TRUE, "Failed to read player's rent code: %s.", GET_NAME(ch)); else - sscanf(line,"%d %d %d %d %d %d",&rentcode, &timed, &netcost, &gold, &account, &nitems); + sscanf(line,"%d %d %d %d %d %d",&rentcode, &timed, &netcost,&gold,&account,&nitems); if (rentcode == RENT_RENTED || rentcode == RENT_TIMEDOUT) { sprintf(str, "%d", SECS_PER_REAL_DAY);