diff --git a/goal_src/jak2/levels/city/common/civilian.gc b/goal_src/jak2/levels/city/common/civilian.gc index be11e38943..040bab6aef 100644 --- a/goal_src/jak2/levels/city/common/civilian.gc +++ b/goal_src/jak2/levels/city/common/civilian.gc @@ -403,7 +403,8 @@ (dotimes (s0-0 s2-0) (+! f30-0 (civilian-method-214 obj (-> s3-0 branch-array s0-0) (+ arg1 -1) arg2 s1-0)) ) - (set! arg3 (+ s1-0 (the float (/ (the int f30-0) s2-0)))) + ;; changed to fix a divide by zero crash + (set! arg3 (+ s1-0 (the float (/-0-guard (the int f30-0) s2-0)))) ) ) )