From 2fbe1fdf09f7312fd417c2f278f69ee437325678 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 1 Sep 2019 16:51:26 +0200 Subject: [PATCH] Dont use cached version of NumericScriptType with extern, this causes issues --- src/ScriptTypes/ScriptType.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/ScriptTypes/ScriptType.cpp b/src/ScriptTypes/ScriptType.cpp index a568926..c391cfa 100644 --- a/src/ScriptTypes/ScriptType.cpp +++ b/src/ScriptTypes/ScriptType.cpp @@ -23,12 +23,7 @@ namespace Porygon{ } const ScriptType* CreateNumericScriptType(bool isAware, bool isFloat){ - if (isAware){ - if (isFloat) - return NumericScriptType::AwareFloat.get(); - return NumericScriptType::AwareInt.get(); - } - return NumericScriptType::Unaware.get(); + return new NumericScriptType(isAware, isFloat); } ScriptType* CreateStringScriptType(bool knownAtBind, uint32_t hash){