Skip to content

Commit 746e475

Browse files
committed
Fixed Get*Option
1 parent 51e88a7 commit 746e475

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

Diff for: FabricSplice.h

+13-13
Original file line numberDiff line numberDiff line change
@@ -3850,7 +3850,7 @@ namespace FabricSplice
38503850
{
38513851
FabricCore::Variant option = getOption(name);
38523852
if(!option.isBoolean())
3853-
return defaultValue;
3853+
return getIntegerOption(name, defaultValue) != 0;
38543854
return option.getBoolean();
38553855
}
38563856

@@ -3861,19 +3861,19 @@ namespace FabricSplice
38613861
if(option.isSInt8())
38623862
return (int)option.getSInt8();
38633863
if(option.isSInt16())
3864-
return (int)option.getSInt8();
3864+
return (int)option.getSInt16();
38653865
if(option.isSInt32())
3866-
return (int)option.getSInt8();
3866+
return (int)option.getSInt32();
38673867
if(option.isSInt64())
3868-
return (int)option.getSInt8();
3868+
return (int)option.getSInt64();
38693869
if(option.isUInt8())
38703870
return (int)option.getUInt8();
38713871
if(option.isUInt16())
3872-
return (int)option.getUInt8();
3872+
return (int)option.getUInt16();
38733873
if(option.isUInt32())
3874-
return (int)option.getUInt8();
3874+
return (int)option.getUInt32();
38753875
if(option.isUInt64())
3876-
return (int)option.getUInt8();
3876+
return (int)option.getUInt64();
38773877
if(option.isFloat32())
38783878
return (int)option.getFloat32();
38793879
if(option.isFloat64())
@@ -3888,19 +3888,19 @@ namespace FabricSplice
38883888
if(option.isSInt8())
38893889
return (float)option.getSInt8();
38903890
if(option.isSInt16())
3891-
return (float)option.getSInt8();
3891+
return (float)option.getSInt64();
38923892
if(option.isSInt32())
3893-
return (float)option.getSInt8();
3893+
return (float)option.getSInt32();
38943894
if(option.isSInt64())
3895-
return (float)option.getSInt8();
3895+
return (float)option.getSInt64();
38963896
if(option.isUInt8())
38973897
return (float)option.getUInt8();
38983898
if(option.isUInt16())
3899-
return (float)option.getUInt8();
3899+
return (float)option.getUInt16();
39003900
if(option.isUInt32())
3901-
return (float)option.getUInt8();
3901+
return (float)option.getUInt32();
39023902
if(option.isUInt64())
3903-
return (float)option.getUInt8();
3903+
return (float)option.getUInt64();
39043904
if(option.isFloat32())
39053905
return (float)option.getFloat32();
39063906
if(option.isFloat64())

0 commit comments

Comments
 (0)