screen: fix screen number on error
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
0af81ca7eb
commit
f17b172f57
2
lua.h
2
lua.h
|
@ -96,7 +96,7 @@ typedef int luaA_ref;
|
|||
#define luaA_checkscreen(screen) \
|
||||
do { \
|
||||
if(screen < 0 || screen >= globalconf.screens_info->nscreen) \
|
||||
luaL_error(L, "invalid screen number: %d", screen); \
|
||||
luaL_error(L, "invalid screen number: %d", screen + 1); \
|
||||
} while(0)
|
||||
|
||||
/** Check that an object is not a NULL reference.
|
||||
|
|
Loading…
Reference in New Issue