Extraneous string array

This commit is contained in:
Kawe Mazidjatari 2022-05-10 18:09:31 +02:00
parent 473db0e320
commit 868d6ea14a
2 changed files with 1 additions and 9 deletions

View File

@ -92,14 +92,6 @@ const static std::string SQVM_LOG_T[4] =
"Script(X):"
};
const static std::string SQVM_WARNING_LOG_T[4] =
{
"Script(S):",
"Script(C):",
"Script(U):",
"Script(X):"
};
const static std::string SQVM_ANSI_LOG_T[4] =
{
"\033[38;2;151;149;187mScript(S):",

View File

@ -189,7 +189,7 @@ SQRESULT HSQVM_WarningFunc(HSQUIRRELVM v, SQInteger a2, SQInteger a3, SQInteger*
static std::shared_ptr<spdlog::logger> wconsole = spdlog::get("win_console");
static std::shared_ptr<spdlog::logger> sqlogger = spdlog::get("sqvm_warn_logger");
std::string vmStr = SQVM_WARNING_LOG_T[static_cast<int>(context)].c_str();
std::string vmStr = SQVM_LOG_T[static_cast<int>(context)].c_str();
std::string svConstructor(*ppString, *nStringSize); // Get string from memory via std::string constructor.
vmStr.append(svConstructor);