From: nveid Date: Thu, 26 Oct 2006 12:11:56 +0000 (+0000) Subject: Checking Info for any attributes would crash the game. Fixed by setting the X-Git-Tag: 0.73~224 X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=6b9d562dc7683bc801ef403d47cdea0f9203ff4f;p=cobramush.git Checking Info for any attributes would crash the game. Fixed by setting the attribute poitner to NULL initially. --- diff --git a/game/txt/changes/0.72p2 b/game/txt/changes/0.72p2 index 7f8294d..924f829 100644 --- a/game/txt/changes/0.72p2 +++ b/game/txt/changes/0.72p2 @@ -24,3 +24,4 @@ CobraMUSH Version 0.72p2 Guest was destroyed even though it was connected. [RLB] * Certain command restrictions that were applied did not give appropriate command failure messages correctly. [RLB] + * Checking info for any attributes would crash the game. [RLB] diff --git a/src/atr_tab.c b/src/atr_tab.c index d3316d3..c74dedc 100644 --- a/src/atr_tab.c +++ b/src/atr_tab.c @@ -443,6 +443,9 @@ void do_attribute_info(dbref player, char *name) { ATTR *ap; + + ap = NULL; + if (!name || !*name) { if(catchall) ap = catchall;