Interrupt / systemshock

Shockolate - A minimalist and cross platform System Shock source port.
GNU General Public License v3.0
806 stars 65 forks source link

Prevent out-of-bounds in objslew obj to list #255

Closed donnierussellii closed 5 years ago

donnierussellii commented 5 years ago

EYE_HEADH index is outside bounds of cam_slew_scale[]

Interrupt commented 5 years ago

Weird, does this case ever happen in game?

donnierussellii commented 5 years ago

This and the following function can be called with EYE_HEADH as a parameter. The first function is never called with this value, so the case could just be removed. The code in the case reads an array out of bounds.

donnierussellii commented 5 years ago

I will just close this, as it doesn't fix anything.