use zero memory macro
This commit is contained in:
parent
0eb0eb1bec
commit
b7ed5fa204
@ -6,6 +6,7 @@ namespace gsc
|
|||||||
extern void* meth_table[1000];
|
extern void* meth_table[1000];
|
||||||
|
|
||||||
extern std::uint16_t scr_func_max_id;
|
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_function(const std::string& name, const game::native::BuiltinFunction& func);
|
||||||
void register_method(const std::string& name, const game::native::BuiltinMethod& meth);
|
void register_method(const std::string& name, const game::native::BuiltinMethod& meth);
|
||||||
|
@ -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::LiveStorage_GetPersistentDataDefVersion(), game::native::LiveStorage_GetPersistentDataDefFormatChecksum(), bot_port);
|
||||||
|
|
||||||
game::native::netadr_s adr;
|
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);
|
game::native::SV_Cmd_TokenizeString(user_info);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user