[ScriptError]: Make patch work on release

This commit is contained in:
Edo 2023-01-16 20:26:42 +01:00 committed by GitHub
parent 33f554effd
commit 85667aedb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,8 @@
#include <STDInclude.hpp> #include <STDInclude.hpp>
#include "ScriptError.hpp" #include "ScriptError.hpp"
#define SCRIPT_ERROR_PATCH
using namespace Utils::String; using namespace Utils::String;
namespace Components namespace Components
@ -899,7 +901,7 @@ namespace Components
ScriptError::ScriptError() ScriptError::ScriptError()
{ {
#ifdef _DEBUG #ifdef SCRIPT_ERROR_PATCH
std::vector<std::pair<std::size_t, void*>> patches; std::vector<std::pair<std::size_t, void*>> patches;
const auto p = [&patches](const std::size_t a, void* b) const auto p = [&patches](const std::size_t a, void* b)
{ {