From d538b86a4710ab056556e6ea144e4ed38b9ec6c2 Mon Sep 17 00:00:00 2001 From: ShinDarth Date: Wed, 24 Aug 2016 01:14:28 +0200 Subject: Core/Chat: properly prevent crashes + cleaning (import from TrinityCore) - Closes #111 --- src/scripts/Commands/cs_debug.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/scripts/Commands/cs_debug.cpp') diff --git a/src/scripts/Commands/cs_debug.cpp b/src/scripts/Commands/cs_debug.cpp index 31c55bbb85..5b627d9693 100644 --- a/src/scripts/Commands/cs_debug.cpp +++ b/src/scripts/Commands/cs_debug.cpp @@ -82,9 +82,8 @@ public: }; static std::vector commandTable = { - { "debug", SEC_GAMEMASTER, true, nullptr, "", debugCommandTable }, - { "wpgps", SEC_ADMINISTRATOR, false, &HandleWPGPSCommand, "", }, - { nullptr, SEC_PLAYER, false, nullptr, "", } + { "debug", SEC_GAMEMASTER, true, nullptr, "", debugCommandTable }, + { "wpgps", SEC_ADMINISTRATOR, false, &HandleWPGPSCommand, "", } }; return commandTable; } -- cgit v1.2.3