- Fixed the define script_lastdata, introduced by me at r9637 (had the wrong sign)

really hate these types of bugs, no more committing late for me >.>

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9639 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
FlavioJS 2007-01-10 14:57:54 +00:00
parent dc139362e8
commit aa371b3af3

View File

@ -60,7 +60,7 @@
/// Returns if the stack contains data at the target index /// Returns if the stack contains data at the target index
#define script_hasdata(st,i) ( (st)->end > (st)->start + (i) ) #define script_hasdata(st,i) ( (st)->end > (st)->start + (i) )
/// Returns the index of the last data in the stack /// Returns the index of the last data in the stack
#define script_lastdata(st) ( (st)->end - (st)->start + 1 ) #define script_lastdata(st) ( (st)->end - (st)->start - 1 )
#define script_pushint(st,val) push_val((st)->stack, C_INT, (val)) #define script_pushint(st,val) push_val((st)->stack, C_INT, (val))
#define script_isstring(data) ( (data)->type == C_STR || (data)->type == C_CONSTSTR ) #define script_isstring(data) ( (data)->type == C_STR || (data)->type == C_CONSTSTR )
#define script_isint(data) ( (data)->type == C_INT ) #define script_isint(data) ( (data)->type == C_INT )