use zero memory macro

This commit is contained in:
FutureRave 2023-03-02 12:59:40 +00:00
parent 0eb0eb1bec
commit b7ed5fa204
No known key found for this signature in database
GPG Key ID: 22F9079C86CFAB31
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ namespace gsc
extern void* meth_table[1000];
extern std::uint16_t scr_func_max_id;
extern std::uint16_t scr_meth_max_id;
void register_function(const std::string& name, const game::native::BuiltinFunction& func);
void register_method(const std::string& name, const game::native::BuiltinMethod& meth);

View File

@ -55,7 +55,7 @@ game::native::gentity_s* test_clients::sv_add_test_client()
game::native::LiveStorage_GetPersistentDataDefVersion(), game::native::LiveStorage_GetPersistentDataDefFormatChecksum(), bot_port);
game::native::netadr_s adr;
std::memset(&adr, 0, sizeof(game::native::netadr_s));
ZeroMemory(&adr, sizeof(game::native::netadr_s));
game::native::SV_Cmd_TokenizeString(user_info);