From a6613c6c3b7d8c69e3091dd0d9fae0cbb5c806f2 Mon Sep 17 00:00:00 2001
From: guoguangwu <guoguangwu@magic-shield.com>
Date: Mon, 17 Jul 2023 09:47:12 +0800
Subject: [PATCH] fix: Printf format %s has arg #2 of wrong type float64

---
 game.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/game.go b/game.go
index 7577475..4207e81 100644
--- a/game.go
+++ b/game.go
@@ -474,7 +474,7 @@ func (g *Game) initalizeLevel(width, height int) {
 }
 
 func (g *Game) setTileType(pos Position, tileType TileType) error {
-	outOfBoundsErr := "The given %s value (%s) is out of bounds"
+	outOfBoundsErr := "The given %s value (%f) is out of bounds"
 	if pos.RoundX() > len(g.level) || pos.RoundX() < 0 {
 		return fmt.Errorf(outOfBoundsErr, "X", pos.X)
 	} else if pos.RoundY() > len(g.level[pos.RoundX()]) || pos.RoundY() < 0 {