Fixed crash in PrepareGlobalScriptsListByMask in ReleaseXP build when using v141_xp toolset

- Passing a raw pointer to fileMask's char array to db_get_file_list seemed to be the main cause
- I've also replaced the use of _strlwr with ToLowerCase on the string copy, to avoiding editing strings returned from engine function in-place
- Clarified the constness of file list variable used by db_*_file_list for the same reason
This commit is contained in:
phobos2077
2026-02-28 15:54:28 +01:00
parent 38e1eaef64
commit b58c26a401
3 changed files with 10 additions and 6 deletions
@@ -475,6 +475,7 @@
#define OBJ_DATA_DAMAGE_FLAGS (0x44)
#define OBJ_DATA_DAMAGE_LAST_TURN (0x48)
#define OBJ_DATA_WHO_HIT_ME (0x54) // current target of the critter
#define OBJ_DATA_CRITTER_HP (0x58)
// compute attack result data offsets
#define C_ATTACK_SOURCE (0x00)