diff --git a/src/components/GameStateProvider/urlConfig.ts b/src/components/GameStateProvider/urlConfig.ts index 0defc6f..48abf41 100644 --- a/src/components/GameStateProvider/urlConfig.ts +++ b/src/components/GameStateProvider/urlConfig.ts @@ -343,8 +343,8 @@ export function decodeUrl(s: string): StringifiedUrlConfig { r: "0", c: terrainDir === TerrainDirection.height - ? `${curToken}_${decodeNumber(c)}` - : `${decodeNumber(c)}_${curToken}`, + ? `${decodeNumber(curToken)}_${decodeNumber(c)}` + : `${decodeNumber(c)}_${decodeNumber(curToken)}`, }); if (terrainCount === 0) pentominoPos = 1; terrainCount -= 1;