Skip to content

Commit 7c1cc57

Browse files
committed
изменено приведение типа
1 parent 7befc34 commit 7c1cc57

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/OneScript.StandardLibrary/NativeApi/NativeApiComponent.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public BslMethodInfo GetMethodInfo(int methodNumber)
227227
{
228228
NativeApiProxy.GetParamDefValue(_object, methodNumber, i, variant =>
229229
{
230-
var value = (BslPrimitiveValue)new NativeApiVariant(variant).GetValue();
230+
var value = new NativeApiVariant(variant).GetValue() as BslPrimitiveValue;
231231
parameter.DefaultValue(value);
232232
});
233233
}

0 commit comments

Comments
 (0)