Dont use cached version of NumericScriptType with extern, this causes issues
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2019-09-01 16:51:26 +02:00
parent cf1daf7805
commit 2fbe1fdf09
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 1 additions and 6 deletions

View File

@ -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){