summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-12-08 00:37:35 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-12-08 00:37:35 +0000
commit1d9aaa67f385650d8eef5a2e259724a6cb57a925 (patch)
treefaa53851ea05d230e04488580bb0ccf3ed2978b2 /sample
parentf186ef7336e57ba784fb065c0d648fc1d5609d57 (diff)
991208-repack
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_4@585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
-rw-r--r--sample/mine.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/mine.rb b/sample/mine.rb
index 7d02e5bfc9..35660e0760 100644
--- a/sample/mine.rb
+++ b/sample/mine.rb
@@ -81,7 +81,7 @@ class Board
elsif y < 0 then 0
elsif y >= @hi then 0
else
- @data[x*@wi+y]
+ @data[x*@wi+x]
end
end
def count(x,y)