summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-01-10 14:57:54 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-01-10 14:57:54 +0000
commit0294c97bd29b0d3cdb256194707660577625437d (patch)
tree9eeb6ecc2614f6661f43e66c45db77be2801dede /src/map/script.c
parentcee8548dbe150ee40cd6cb5307a0dde12e6e47da (diff)
downloadhercules-0294c97bd29b0d3cdb256194707660577625437d.tar.gz
hercules-0294c97bd29b0d3cdb256194707660577625437d.tar.bz2
hercules-0294c97bd29b0d3cdb256194707660577625437d.tar.xz
hercules-0294c97bd29b0d3cdb256194707660577625437d.zip
- 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9639 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index bce1f6cc7..9721f12d0 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -60,7 +60,7 @@
/// Returns if the stack contains data at the target index
#define script_hasdata(st,i) ( (st)->end > (st)->start + (i) )
/// 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_isstring(data) ( (data)->type == C_STR || (data)->type == C_CONSTSTR )
#define script_isint(data) ( (data)->type == C_INT )