From 1dbbdc94e863d992845934624a28c8c53c624cff Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 27 Apr 2006 15:25:53 +0000 Subject: - Small change in @commands, may fix the null-pointer error. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6318 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/atcommand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 804193130..6a2bccf3b 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -1173,7 +1173,7 @@ int atcommand_commands(const int fd, struct map_session_data* sd, clif_displaymessage(fd, msg_txt(273)); memset(atcmd_output, 0, sizeof atcmd_output); for (i = 0; atcommand_info[i].type != AtCommand_None; i++) - if (atcommand_info[i].level <= level) { + if (atcommand_info[i].level <= level && atcommand_info[i].command) { count++; strcat(atcmd_output, atcommand_info[i].command); strcat(atcmd_output, " "); -- cgit v1.2.3-70-g09d2