mirror of
https://github.com/XLabsProject/s1x-client.git
synced 2023-08-02 15:02:12 +02:00
fix: crash when using the chat
This commit is contained in:
parent
7aa0e513c7
commit
54bc09d28c
@ -190,7 +190,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