]> git.pond.sub.org Git - empserver/commitdiff
Fix edit command seqno oopses hvy-metal-2.0a
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 5 May 2008 19:26:12 +0000 (21:26 +0200)
committerMarkus Armbruster <armbru@pike.pond.sub.org>
Sun, 18 May 2008 08:13:38 +0000 (10:13 +0200)
Broken by commit dc9d847b.

src/lib/commands/edit.c

index cabcbabfa019097677d7a8aa99e7094018d36e00..0b3108c0ab54c65f09c3eeed0b32b9f7a57bff80 100644 (file)
@@ -871,7 +871,7 @@ dounit(char op, int arg, char *p, struct lndstr *land)
        land->lnd_land = arg;
        break;
     case 'U':
-       ef_set_uid(EF_SHIP, land, arg);
+       ef_set_uid(EF_LAND, land, arg);
        break;
     case 'O':
        if (land->lnd_own)
@@ -994,7 +994,7 @@ doplane(char op, int arg, char *p, struct plnstr *plane)
        plane->pln_nuketype = arg;
        break;
     case 'U':
-       plane->pln_uid = arg;
+       ef_set_uid(EF_PLANE, plane, arg);
        break;
     case 'l':
        if (!sarg_xy(p, &newx, &newy))