supathfix - if a player was nuked at the end of the su exit path.. fuxked
authornveid <nveid@comcast.net>
Tue, 31 Oct 2006 20:22:13 +0000 (20:22 +0000)
committerAri Johnson <ari@nveid.com>
Tue, 12 Sep 2006 12:49:49 +0000 (12:49 +0000)
ups hit
(cherry picked from commit 6209657c7032fd94b38aed01a9986e5970909246)

game/txt/changes/0.72p2
src/bsd.c

index b8de44472adbecc79dda44189645e5d1e1526b69..afb3b19ded4963ff1eb8be34837f55fd58c249e8 100644 (file)
@@ -29,3 +29,5 @@ CobraMUSH Version 0.72p2
       that did not handle the GOAHEAD prompt telnet code. [RLB]
     * Quotas were not accounting new Division quotas restrictions 
       correctly for display using the @quota command. [RLB]
+    * If a player was nuked at the end of the chain before the login
+      screen in the su exit path. Game would crash. [RLB]
index 18a09158033681829b043535b6d42ddba054d047..a5e84f4a0b1e20d2c51e14b0c95633ffa4f7e4c2 100644 (file)
--- a/src/bsd.c
+++ b/src/bsd.c
@@ -5742,9 +5742,9 @@ static int do_su_exit(DESC *d) {
        path_entry = path_entry->next;
        mush_free(mark_path, "SU_PATH_ENTRY");
       }
+    d->su_exit_path = path_entry;
     if(!path_entry)
       return 0;
-    d->su_exit_path = path_entry;
     /* Disconnect appearance */
     announce_disconnect(d->player);
     d->player = path_entry->player;