diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-03-25 12:55:11 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-03-25 12:55:11 -0700 |
commit | e63df20c3838fb6760c7d891cccfc901fb8bec41 (patch) | |
tree | cd8155540e21735e52cdc38624faeeac277d4834 /src/map/script.cpp | |
parent | 380bc1de6fe3f8ff5ad576938edc946e7125ed70 (diff) | |
download | tmwa-e63df20c3838fb6760c7d891cccfc901fb8bec41.tar.gz tmwa-e63df20c3838fb6760c7d891cccfc901fb8bec41.tar.bz2 tmwa-e63df20c3838fb6760c7d891cccfc901fb8bec41.tar.xz tmwa-e63df20c3838fb6760c7d891cccfc901fb8bec41.zip |
fix script/magic interaction
Diffstat (limited to 'src/map/script.cpp')
-rw-r--r-- | src/map/script.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/script.cpp b/src/map/script.cpp index 9884aae..75f6809 100644 --- a/src/map/script.cpp +++ b/src/map/script.cpp @@ -4980,13 +4980,13 @@ void set_script_var_i(dumb_ptr<map_session_data> sd, VarName var, int e, int val { size_t k = variable_names.intern(var); SIR reg = SIR::from(k, e); - set_reg(sd, ByteCode::INT, reg, val); + set_reg(sd, ByteCode::VARIABLE, reg, val); } void set_script_var_s(dumb_ptr<map_session_data> sd, VarName var, int e, XString val) { size_t k = variable_names.intern(var); SIR reg = SIR::from(k, e); - set_reg(sd, ByteCode::INT, reg, dumb_string::copys(val)); + set_reg(sd, ByteCode::VARIABLE, reg, dumb_string::copys(val)); } int get_script_var_i(dumb_ptr<map_session_data> sd, VarName var, int e) { |