1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-19 08:37:14 +02:00

Merge pull request from vancityspiller/master

(Compat Layer) Fix onPlayerCommand returning incomplete text
This commit is contained in:
Sandu Liviu Catalin
2021-07-23 09:15:25 +03:00
committed by GitHub

@ -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)
{