]> git.pond.sub.org Git - empserver/commitdiff
No need to assign uid after ef_blank()
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 24 Mar 2008 17:40:06 +0000 (18:40 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 26 Mar 2008 21:13:21 +0000 (22:13 +0100)
The redundant assignments should have been removed in commit 2da8d0c7.

src/lib/commands/offe.c
src/lib/commands/sell.c
src/lib/commands/set.c

index 50e283468a86fa269c80288540a1c67ac1f6ddff..e73b0ba7a04fe1e7b6716f0cf9fa8edab6b30507 100644 (file)
@@ -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;
index 9f7726d471343d4696c1a7d263a70b19b722d330..0a9c6ae564ade9e768f29cb831c4fd60d2342c90 100644 (file)
@@ -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;
index 5f20a2c3759c18d42874f6d0e7741af71e62718f..e519526e5852dbe7ca643f8f6c099e6763f0587a 100644 (file)
@@ -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);