ref: 789d4fb0ea6cb3ed53e40100a146205511de1cbc
parent: 10caae5e74653336605b6e8254c7571d248c242e
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed Jul 15 12:35:05 EDT 2020
Fix another out-of-bounds array access This one involves the Spur.
--- a/src/Bullet.cpp
+++ b/src/Bullet.cpp
@@ -2179,7 +2179,12 @@
bul->ani_no = bul->count1 - 20;
if (bul->ani_no > 2)
+ {
bul->cond = 0;
+ #ifdef FIX_BUGS
+ return; // Avoid accessing the RECT arrays with an out-of-bounds index
+ #endif
+ }
if (bul->damage && bul->life != 100)
bul->damage = 0;