online multiplayer chess game (note server currently down)
Diffstat (limited to 'PGN/PGN.gd')
-rw-r--r--PGN/PGN.gd5
1 files changed, 2 insertions, 3 deletions
diff --git a/PGN/PGN.gd b/PGN/PGN.gd
index d6ba721..8a8eaf6 100644
--- a/PGN/PGN.gd
+++ b/PGN/PGN.gd
@@ -2,7 +2,7 @@ extends Node
class_name PGN
-func parse(pgn: String, tags := true) -> Dictionary:
+func parse(pgn: String, tags := true):
# put tags into a dictionary,
# and the moves into a array
@@ -33,8 +33,7 @@ func parse(pgn: String, tags := true) -> Dictionary:
headers[cap[1]] = cap[2]
else:
# invalid headers
- push_error("invalid headers")
- return {}
+ return null
else:
break
var movetext := PoolStringArray()