From 44295e43af47c721c8cded0877e807b8b4800830 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Mon, 24 Mar 2008 18:40:06 +0100 Subject: [PATCH] No need to assign uid after ef_blank() The redundant assignments should have been removed in commit 2da8d0c7. --- src/lib/commands/offe.c | 1 - src/lib/commands/sell.c | 1 - src/lib/commands/set.c | 1 - 3 files changed, 3 deletions(-) diff --git a/src/lib/commands/offe.c b/src/lib/commands/offe.c index 50e28346..e73b0ba7 100644 --- a/src/lib/commands/offe.c +++ b/src/lib/commands/offe.c @@ -229,7 +229,6 @@ do_loan(void) loan.l_amtdue = amt; (void)time(&loan.l_lastpay); loan.l_duedate = loan.l_ldur * SECS_PER_DAY + loan.l_lastpay; - loan.l_uid = nstr.cur; if (!putloan(nstr.cur, &loan)) { pr("Couldn't save loan; get help!\n"); return RET_SYS; diff --git a/src/lib/commands/sell.c b/src/lib/commands/sell.c index 9f7726d4..0a9c6ae5 100644 --- a/src/lib/commands/sell.c +++ b/src/lib/commands/sell.c @@ -155,7 +155,6 @@ sell(void) comm.com_y = 0; comm.sell_x = sect.sct_x; comm.sell_y = sect.sct_y; - comm.com_uid = ii; if (!putcomm(ii, &comm)) { pr("Problems with the commodities file, call the Deity\n"); return RET_FAIL; diff --git a/src/lib/commands/set.c b/src/lib/commands/set.c index 5f20a2c3..e519526e 100644 --- a/src/lib/commands/set.c +++ b/src/lib/commands/set.c @@ -128,7 +128,6 @@ set(void) trade.trd_y = item.gen.y; trade.trd_type = type; trade.trd_owner = player->cnum; - trade.trd_uid = id; trade.trd_unitid = ni.cur; trade.trd_price = price; (void)time(&now);