summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-06-26 15:59:32 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-06-26 16:00:56 -0700
commit496326afb9e148971323e562d967b909bbbc3309 (patch)
treea83ed8d95378ed1c110e0642f2715de457a6a39b /src/map
parentbc54555da122ae950578fd0ce57596a3569c4885 (diff)
downloadtmwa-496326afb9e148971323e562d967b909bbbc3309.tar.gz
tmwa-496326afb9e148971323e562d967b909bbbc3309.tar.bz2
tmwa-496326afb9e148971323e562d967b909bbbc3309.tar.xz
tmwa-496326afb9e148971323e562d967b909bbbc3309.zip
Less UB
Diffstat (limited to 'src/map')
-rw-r--r--src/map/script.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/script.cpp b/src/map/script.cpp
index 64cddd0..f719cfe 100644
--- a/src/map/script.cpp
+++ b/src/map/script.cpp
@@ -1030,6 +1030,7 @@ static
void set_reg(dumb_ptr<map_session_data> sd, ByteCode type, SIR reg, int id)
{
struct script_data vd;
+ vd.type = ByteCode::INT;
vd.u.numi = id;
set_reg(sd, type, reg, vd);
}
@@ -1038,6 +1039,7 @@ static
void set_reg(dumb_ptr<map_session_data> sd, ByteCode type, SIR reg, dumb_string zd)
{
struct script_data vd;
+ vd.type = ByteCode::CONSTSTR;
vd.u.str = zd;
set_reg(sd, type, reg, vd);
}