summaryrefslogtreecommitdiff
path: root/src/emap/mob.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-07-09 00:56:14 +0300
committerAndrei Karas <akaras@inbox.ru>2018-07-09 00:56:14 +0300
commit1b33e9d77b4ba2e88badebbe09e743f2a4885284 (patch)
treec50ba6a5463f30ce4928eb7f9252d9dfd5390f02 /src/emap/mob.c
parent593e49e7155324969f880bab1e677ba8e86bcbaa (diff)
downloadevol-hercules-1b33e9d77b4ba2e88badebbe09e743f2a4885284.tar.gz
evol-hercules-1b33e9d77b4ba2e88badebbe09e743f2a4885284.tar.bz2
evol-hercules-1b33e9d77b4ba2e88badebbe09e743f2a4885284.tar.xz
evol-hercules-1b33e9d77b4ba2e88badebbe09e743f2a4885284.zip
Fix out of bound access in emob_load_weaponattacks.s20180713
Diffstat (limited to 'src/emap/mob.c')
-rw-r--r--src/emap/mob.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/emap/mob.c b/src/emap/mob.c
index b4f4f31..fbc75b6 100644
--- a/src/emap/mob.c
+++ b/src/emap/mob.c
@@ -192,6 +192,7 @@ static void emob_load_weaponattacks(const char *type,
{
for (int f = 0; f < MAX_WEAPON_TYPE; f ++)
data->weaponAttacks[f] = val;
+ return;
}
else
{