Skip to content

Commit d4289fe

Browse files
committed
Cast to int?
1 parent 9c98ed8 commit d4289fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GeometryDashAPI/GeometryDashApi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class GeometryDashApi
1919
{ typeof(byte), x => byte.Parse(x) },
2020
{ typeof(short), x => short.Parse(x) },
2121
{ typeof(int), x => int.Parse(x) },
22-
{ typeof(int?), x => string.IsNullOrEmpty(x) ? null : int.Parse(x) },
22+
{ typeof(int?), x => string.IsNullOrEmpty(x) ? (int?)null : int.Parse(x) },
2323
{ typeof(long), x => long.Parse(x) },
2424
{ typeof(double), x => GameConvert.StringToDouble(x) },
2525
{ typeof(float), x => GameConvert.StringToSingle(x) },

0 commit comments

Comments
 (0)