Project

General

Profile

Actions

Bug #1827

closed

Segmentation fault from mouse click in gotodlg.cpp

Added by John Robertson 12 days ago. Updated 6 days ago.

Status:
Closed
Priority:
Normal
Category:
Qt-client
Target version:
Start date:
12/20/2025
Due date:
% Done:

0%

Estimated time:

Description

my mouse clicks are messy, so I'm not sure whether a city was selected or not.

Looking at the coredump, it is clear that `game_city_by_number(city_id)` returns nullptr.

The `city_id` seemed to be out of range.

coredump in debugger


Files

clipboard-202512200001-yvmpo.png (261 KB) clipboard-202512200001-yvmpo.png coredump in debugger John Robertson, 12/20/2025 09:01 AM
1827.patch (824 Bytes) 1827.patch John Robertson, 12/20/2025 09:14 AM
1827.v2.patch (1.06 KB) 1827.v2.patch John Robertson, 12/20/2025 09:06 PM
Actions

Also available in: Atom PDF