Skip to content

Commit

Permalink
Fix bug in last changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
enz committed Aug 25, 2002
1 parent 8864544 commit 643d550
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sgf/Reader.java
Expand Up @@ -136,9 +136,11 @@ private int parseInt(String s) throws Error
private Point parsePoint(String s) throws Error
{
s = s.trim().toLowerCase();
if (s.equals(""))
return null;
if (s.length() < 2)
loadError("Invalid coordinates.");
if (s.equals("") || (s.equals("tt") && m_boardSize <= 19))
if (s.equals("tt") && m_boardSize <= 19)
return null;
int x = s.charAt(0) - 'a';
int y = m_boardSize - (s.charAt(1) - 'a') - 1;
Expand Down

0 comments on commit 643d550

Please sign in to comment.