online multiplayer chess game (note server currently down)
why cant i use size on a string
bendn 2022-05-13
parent 26ed4d5 · commit 09a39b2
-rw-r--r--Utils.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utils.gd b/Utils.gd
index 7d721cc..d5f5924 100644
--- a/Utils.gd
+++ b/Utils.gd
@@ -93,7 +93,7 @@ func fen() -> String:
var spot = Globals.grid.matrix[rank][file]
if spot == null:
empty += 1
- if pieces.size() > 0 and str(empty - 1) == pieces[-1]:
+ if len(pieces) > 0 and str(empty - 1) == pieces[-1]:
pieces[-1] = str(empty)
else:
pieces += str(empty)