about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--life.teliva2
1 files changed, 1 insertions, 1 deletions
diff --git a/life.teliva b/life.teliva
index cd84777..a37918a 100644
--- a/life.teliva
+++ b/life.teliva
@@ -241,7 +241,7 @@ function update(window)
   elseif c == curses.KEY_UP then
     for i=2,lines*4 do
       for j=1,cols*2 do
-        grid[i][j-1] = grid[i][j+1]
+        grid[i-1][j] = grid[i][j]
       end
     end
     for j=1,cols*2 do