elishacloud / Silent-Hill-2-Enhancements

A project designed to enhance Silent Hill 2 (SH2) graphics and audio for the PC. It also includes scripts to build or modify SH2 audio files (SFX, BGM and Dialog).
http://www.enhanced.townofsilenthill.com/SH2/
zlib License
595 stars 42 forks source link

Fix crash when toggling advanced filters from options #1110

Closed Murugo closed 1 week ago

Murugo commented 1 week ago

This fix resolves a crash caused by enabling or disabling "Advanced Options > Advanced Filters" in certain rooms, e.g. Room 312 in Lakeview Hotel. The new advanced options handler was not allocating enough space on the stack before calling into code that updates advanced filters (00464E74 - 00464EBB), causing this code block to corrupt the stack.

elishacloud commented 1 week ago

Nice work! Thanks @Murugo!