jak2: fix pegasus crash (#2676)

This commit is contained in:
Hat Kid
2023-05-30 01:31:07 +02:00
committed by GitHub
parent 4c6982b0ec
commit 48141bee6f
+1
View File
@@ -1238,6 +1238,7 @@ The faster it's moving the fast it flaps it's wings, etc
(defmethod init-enemy-collision! pegasus ((obj pegasus))
"Initializes the [[collide-shape-moving]] and any ancillary tasks to make the enemy collide properly"
(stack-size-set! (-> obj main-thread) 512) ;; added
(let ((cshape (new 'process 'collide-shape-moving obj (collide-list-enum usually-hit-by-player))))
(set! (-> cshape dynam) (copy *standard-dynamics* 'process))
(set! (-> cshape reaction) cshape-reaction-default)