From 5d5993036d7a5034b150f25fc63ec4650a5cbe41 Mon Sep 17 00:00:00 2001 From: Rick Bird Date: Wed, 11 May 2011 22:00:12 -0400 Subject: [PATCH] Fixed crash bug in @event when event obj/atr pair was given wrongly --- src/modules.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules.c b/src/modules.c index 2765566..1429304 100644 --- a/src/modules.c +++ b/src/modules.c @@ -225,13 +225,14 @@ COMMAND(cmd_event) } s = strchr(arg_right, '/'); - *s++ = '\0'; - if (!s) { + if (!s || !*s) { notify(player, "Bad Event format"); return; } + *s++ = '\0'; + thing = match_thing(player, arg_right); if (!GoodObject(thing)) return; -- 2.30.2