Opened 4 years ago
Closed 4 years ago
#12314 closed defect (fixed)
AGS: The Shivah: Segfault when leaving the synagogue
Reported by: | Tea23 | Owned by: | dreammaster |
---|---|---|---|
Priority: | normal | Component: | Engine: AGS |
Version: | Keywords: | ||
Cc: | Game: |
Description
At the very start of the game, after Stone decides to pay his Shivah call the Jack Lauder, leaving the synagogue and opening the map crashes ScummVM with the following:
scummvm: ./common/array.h:238: T& Common::Array<T>::operator[](Common::Array<T>::size_type) [with T = AGS3::SpriteInfo; Common::Array<T>::size_type = unsigned int]: Assertion `idx < _size' failed.
Change History (2)
comment:1 by , 4 years ago
comment:2 by , 4 years ago
Owner: | set to |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Debug output from the AGS engine is:
The assert is caused by using that slot -1 as an index in a
Common::Array
and it is casted to an unsigned int with a very big value.I have no idea why this happens though. Looking at the original source code I think it would also crash if it was getting an index of -1.
The call stack for this crash is: