From 20985163ab550b1ec6d03fa80fed41c2403ccb79 Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Sat, 21 Oct 2023 14:50:25 +0200 Subject: don't Cbuf_Execute --- src/plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/plugin.cpp b/src/plugin.cpp index 179a802..5d527bb 100644 --- a/src/plugin.cpp +++ b/src/plugin.cpp @@ -283,7 +283,7 @@ void Plugin::RunCommand(const char* cmd) ECommandTarget_t cur_player = this->engine_funcs.Cbuf_GetCurrentPlayer(); this->engine_funcs.Cbuf_AddText(cur_player, cmd, cmd_source_t::kCommandSrcCode); - //this->engine_funcs.Cbuf_Execute(); Crashes? + // Don't call Cbuf_Execute, this gets executed somewhere along the way } SQRESULT Plugin::RunSquirrelCode(ScriptContext context, std::string code, SQObject* ret_val) -- cgit v1.2.3