screen: fix screen number on error

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-08-14 18:17:39 +02:00
parent 0af81ca7eb
commit f17b172f57
1 changed files with 1 additions and 1 deletions

2
lua.h
View File

@ -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.