]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/assa.c
Fix assault not to send bogus telex to country 0
[empserver] / src / lib / commands / assa.c
index 6af33d361898ab8fe12b696bce777d74defe77b8..97b138c4ad21e27a8ac63973bf49f8194497a3d5 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2009, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -26,7 +26,7 @@
  *  ---
  *
  *  assa.c: Hit the beaches!
- * 
+ *
  *  Known contributors to this file:
  *     Ken Stevens, 1995
  *     Steve McClure, 1997
@@ -82,7 +82,7 @@ assa(void)
      */
 
     if ((off->shp_uid =
-        onearg(player->argp[2], "Assault from ship #")) < 0) {
+        onearg(player->argp[2], "Assault from ship # ")) < 0) {
        pr("You may only assault from one ship!\n");
        return RET_FAIL;
     }
@@ -181,7 +181,7 @@ assa(void)
                    pr(" and was killed in the attempt.\n");
                    llp->unit.land.lnd_effic = 0;
                    putland(llp->unit.land.lnd_uid, &llp->unit.land);
-                   lnd_delete(llp, "");
+                   lnd_delete(llp, NULL);
                } else {
                    wu(0, def->own, "%s spy spotted in %s.\n",
                       cname(player->cnum), xyas(def->x, def->y,