[ScriptError]: Make patch work on release
This commit is contained in:
parent
33f554effd
commit
85667aedb0
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user