1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Merge pull request #52 from vancityspiller/master
All checks were successful
continuous-integration/drone/push Build is passing

(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
commit 131a3f6a62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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