From 6209657c7032fd94b38aed01a9986e5970909246 Mon Sep 17 00:00:00 2001 From: nveid Date: Tue, 31 Oct 2006 20:22:13 +0000 Subject: [PATCH] supathfix - if a player was nuked at the end of the su exit path.. fuxked ups hit --- game/txt/changes/0.72p2 | 2 ++ src/bsd.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/game/txt/changes/0.72p2 b/game/txt/changes/0.72p2 index b8de444..afb3b19 100644 --- a/game/txt/changes/0.72p2 +++ b/game/txt/changes/0.72p2 @@ -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] diff --git a/src/bsd.c b/src/bsd.c index 18a0915..a5e84f4 100644 --- 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; -- 2.30.2