[Fix?] Need second check to avoid segfault..
This commit is contained in:
parent
c8fe8e8eb8
commit
03f20c5a25
@ -370,7 +370,8 @@ static void weapons_updateLayer(const double dt, const WeaponLayer layer) {
|
||||
/* Only increment if weapon wasn't deleted. */
|
||||
if(w == wlayer[i]) {
|
||||
weapon_update(wlayer[i], dt, layer);
|
||||
i++;
|
||||
if(w == wlayer[i])
|
||||
i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user