summaryrefslogtreecommitdiff
path: root/src/map/script.h
diff options
context:
space:
mode:
authorgreenboxal2 <greenboxal2@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-15 00:30:20 +0000
committergreenboxal2 <greenboxal2@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-15 00:30:20 +0000
commit22d2718db209b1d75a75b4976b882ed659d22ee5 (patch)
treee5450a75b4d9feb15534e08799b5dad3902610b0 /src/map/script.h
parent7b1562b07d55a2712021803eab923200d6891494 (diff)
downloadhercules-22d2718db209b1d75a75b4976b882ed659d22ee5.tar.gz
hercules-22d2718db209b1d75a75b4976b882ed659d22ee5.tar.bz2
hercules-22d2718db209b1d75a75b4976b882ed659d22ee5.tar.xz
hercules-22d2718db209b1d75a75b4976b882ed659d22ee5.zip
Fixed bugreport:5740 var reference was not being restored to call buildin_set on assignment statements.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16300 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.h')
-rw-r--r--src/map/script.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/script.h b/src/map/script.h
index 4d7754241..eed4c20c8 100644
--- a/src/map/script.h
+++ b/src/map/script.h
@@ -47,6 +47,7 @@ typedef enum c_op {
C_RETINFO,
C_USERFUNC, // internal script function
C_USERFUNC_POS, // internal script function label
+ C_REF, // the next call to c_op2 should push back a ref to the left operand
// operators
C_OP3, // a ? b : c
@@ -130,6 +131,7 @@ struct script_state {
struct script_state *bk_st;
int bk_npcid;
unsigned freeloop : 1;// used by buildin_freeloop
+ unsigned op2ref : 1;// used by op_2
};
struct script_reg {