diff --git a/Content.Server/Tabletop/TabletopSystem.Map.cs b/Content.Server/Tabletop/TabletopSystem.Map.cs
index 5e116d81ef..89563ec6bf 100644
--- a/Content.Server/Tabletop/TabletopSystem.Map.cs
+++ b/Content.Server/Tabletop/TabletopSystem.Map.cs
@@ -37,7 +37,7 @@ namespace Content.Server.Tabletop
///
private Vector2 GetNextTabletopPosition()
{
- return UlamSpiral(_tabletops++) * TabletopSeparation;
+ return UlamSpiral(++_tabletops) * TabletopSeparation;
}
///
@@ -62,11 +62,11 @@ namespace Content.Server.Tabletop
///
/// Algorithm for mapping scalars to 2D positions in the same pattern as an Ulam Spiral.
///
- /// Scalar to map to a 2D position.
+ /// Scalar to map to a 2D position. Must be greater than or equal to 1.
/// The mapped 2D position for the scalar.
private Vector2i UlamSpiral(int n)
{
- var k = (int)MathF.Ceiling(MathF.Sqrt(n) - 1) / 2;
+ var k = (int)MathF.Ceiling((MathF.Sqrt(n) - 1) / 2);
var t = 2 * k + 1;
var m = (int)MathF.Pow(t, 2);
t--;