From d8ccd421be97da5f1b5c4cc725cfe49df68f3c8e Mon Sep 17 00:00:00 2001 From: vancityspiller Date: Fri, 23 Jul 2021 11:34:33 +0530 Subject: [PATCH] Fix onPlayerCommand returning incomplete text --- module/Core/Events.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/Core/Events.inc b/module/Core/Events.inc index a3677cd8..2d55d599 100644 --- a/module/Core/Events.inc +++ b/module/Core/Events.inc @@ -914,7 +914,7 @@ void Core::EmitPlayerCommand(int32_t player_id, const char * message) if (split) { // Create a string object for the command (don't include the space character) - text = LightObj(message, static_cast< SQInteger >(split - message) - 1); + text = LightObj(message, static_cast< SQInteger >(split - message)); // Do we need to create a script object for arguments? if (std::strlen(split + 1) > 0) {