mirror of
https://github.com/diamante0018/BlackOpsPlugin.git
synced 2025-05-10 06:14:50 +00:00
fix: client crash from SV code
This commit is contained in:
parent
d06fb0e427
commit
ab85e94643
@ -43,6 +43,11 @@ public:
|
||||
auto* cmd_vstr_f_var = reinterpret_cast<game::cmd_function_s*>(
|
||||
game::select(0x355E69C, 0x243FB1C));
|
||||
cmd_vstr_f_var->function = cmd_vstr_f;
|
||||
|
||||
if (game::environment::is_sp()) {
|
||||
// Fix (client) crash from SV_DropClient (server side)
|
||||
utils::hook::set<std::uint8_t>(0x634C1D, 0xEB);
|
||||
}
|
||||
}
|
||||
};
|
||||
} // namespace command_additions
|
||||
|
Loading…
x
Reference in New Issue
Block a user