From 5de1cc57ce7c7165502348631236f40558f64b83 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Fri, 20 Jul 2007 07:31:09 +0000 Subject: [PATCH] Fixed amb663 - crash when say or say_team command had no arguments --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401145 --- core/ChatTriggers.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/ChatTriggers.cpp b/core/ChatTriggers.cpp index d939efd5..db85c8eb 100644 --- a/core/ChatTriggers.cpp +++ b/core/ChatTriggers.cpp @@ -118,6 +118,11 @@ void ChatTriggers::OnSayCommand_Pre() } const char *args = engine->Cmd_Args(); + + if (!args) + { + RETURN_META(MRES_IGNORED); + } /* Handle quoted string sets */ bool is_quoted = false;