From 1b33e9d77b4ba2e88badebbe09e743f2a4885284 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 9 Jul 2018 00:56:14 +0300 Subject: Fix out of bound access in emob_load_weaponattacks. --- src/emap/mob.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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 { -- cgit v1.2.3-70-g09d2