Skip to content

Commit 8e13503

Browse files
committed
Speculative fix for a divide by zero exception.
1 parent 2f333b5 commit 8e13503

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DataDefinitions/StarSystemId64.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public Boxel ( int x, int y, int z, int masscode )
7575
boxelX = x;
7676
boxelY = y;
7777
boxelZ = z;
78-
boxelWidthLy = 1280 / ( 2 ^ masscode );
78+
boxelWidthLy = Convert.ToInt32( 1280 / Math.Pow( 2, masscode ) );
7979
}
8080
}
8181

0 commit comments

Comments
 (0)