summaryrefslogtreecommitdiff
path: root/apps/plugins/lua
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua')
-rw-r--r--apps/plugins/lua/rocklib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/lua/rocklib.c b/apps/plugins/lua/rocklib.c
index 749acc3831..692106e24d 100644
--- a/apps/plugins/lua/rocklib.c
+++ b/apps/plugins/lua/rocklib.c
@@ -118,7 +118,7 @@ static fb_data* rli_element(lua_State *L)
"index out of range");
/* return element address */
- return &a->data[a->height * (y - 1) + (x - 1)];
+ return &a->data[a->width * (y - 1) + (x - 1)];
}
static int rli_set(lua_State *L)