mirror of
https://github.com/XLabsProject/iw6x-client.git
synced 2023-08-02 15:02:12 +02:00
Merge pull request #859 from diamante0018/develop
fix: crash when using the chat
This commit is contained in:
commit
4d5cc638af
@ -186,7 +186,7 @@ namespace notifies
|
||||
scheduler::once([params, message, msg_index, client_num]
|
||||
{
|
||||
const scripting::entity level{*game::levelEntityId};
|
||||
const auto player = scripting::call("getEntByNum", {client_num}).as<scripting::entity>();
|
||||
const auto player = scripting::call("getentbynum", {client_num}).as<scripting::entity>();
|
||||
// Remove \x1F before sending the notify only if present
|
||||
const auto notify_msg = msg_index ? message.substr(1) : message;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user