From c6221ef5d901f0bf1deae9267795b7135159bc8b Mon Sep 17 00:00:00 2001 From: Ivan Mogilko Date: Wed, 18 Dec 2024 20:43:27 +0300 Subject: [PATCH] Compiler2: hotfix assigning a null pointer to std::string --- Compiler/script2/cs_compiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Compiler/script2/cs_compiler.cpp b/Compiler/script2/cs_compiler.cpp index 7524b6cb8da..d3884f6149a 100644 --- a/Compiler/script2/cs_compiler.cpp +++ b/Compiler/script2/cs_compiler.cpp @@ -255,7 +255,7 @@ ccScript *ccCompileText2(std::string const &script, std::string const &scriptNam compiled_script->sctoc = ccCompileDataTOC(symt, seclist, compiled_script->rtti.get()); } - ccCurScriptName = nullptr; + ccCurScriptName = {}; cc_clear_error(); compiled_script->FreeExtra(); return compiled_script;