Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash in lightmap generation after debug long teleport #1662

Merged
merged 1 commit into from
Jun 28, 2022

Conversation

olanti-p
Copy link
Contributor

@olanti-p olanti-p commented Jun 27, 2022

Summary

SUMMARY: Bugfixes "Fixed crash in lightmap generation after debug long teleport"

Purpose of change

Fixes #725

Describe the solution

Add full vehicle list invalidation to map::clear_vehicle_list

Describe alternatives you've considered

Sticking it in map::load that's called on long teleport, but I'm paranoid.

Testing

  1. Bind quicksave key
  2. Move mouse cursor outside game window
  3. Find (or spawn) a vehicle
  4. Enter debug menu -> teleport -> long range -> any destination more than 2 overmap tiles away
  5. Hit quicksave key
  6. Before fix: CTD
    After fix: game quicksaves with no issues

Additional context

Somehow I've encountered this "rare" crash dozens of times, got fed up with it.

@Coolthulhu Coolthulhu self-assigned this Jun 28, 2022
@Coolthulhu Coolthulhu merged commit ec706e5 into cataclysmbnteam:upload Jun 28, 2022
joveeater pushed a commit to joveeater/Cataclysm-BN that referenced this pull request Jul 10, 2022
@olanti-p olanti-p deleted the fix-debugtp-crash branch July 17, 2022 20:24
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.

Rare crash in lightmap generation after teleporting
2 participants