KEMBAR78
NUVIE: Fix Ultima 6 failed assert on click during prompt by PushmePullyu · Pull Request #4855 · scummvm/scummvm · GitHub
Skip to content

Conversation

@PushmePullyu
Copy link
Contributor

Fix failed assertion on left-clicking while a "new style" prompt is displayed:

"engines/ultima/shared/std/string.h:93:char& Ultima::Std::string::operator:Assertion `idx < _size' failed."

To reproduce the bug:

  1. Enable "new style" in video options
  2. Go to the two pools near the castle entrance
  3. Use the fountain on the top left part of a pool
  4. Left-click anywhere while the prompt is open

Fix failed assertion on left-clicking while a "new style" prompt
is displayed:

"engines/ultima/shared/std/string.h:93:
char& Ultima::Std::string::operator[](size_t):
Assertion `idx < _size' failed."

To reproduce the bug:
1. Enable "new style" in video options
2. Go to the two pools near the castle entrance
3. Use the fountain on the top left part of a pool
4. Left-click anywhere while the prompt	is open
@dreammaster dreammaster merged commit da40bdf into scummvm:master Apr 1, 2023
@PushmePullyu PushmePullyu deleted the fix-u6-crash-on-click-prompt branch May 16, 2023 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants