some minor VS2019 v142 compatibility issues fixed
Authored by: tilly_2 2026-11-11
Parent: [r159]
Child: [r161]