MantisBT - VCMI | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0002389 | VCMI | GUI - Other | public | 2016-01-19 07:14 | 2016-01-19 10:06 |
Reporter | vmarkovtsev | ||||
Assigned To | |||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | Darwin | OS | MacOSX | OS Version | 10.11.2 |
Product Version | 0.98f | ||||
Target Version | Fixed in Version | ||||
Summary | 0002389: CComponent::getSubtitleInternal segfaults on unknown town buildings | ||||
Description | std::string CComponent::getSubtitleInternal() at client/widgets/CComponent.cpp near line 177 case building: return CGI->townh->factions[subtype]->town->buildings[BuildingID(val)]->Name() If val is not contained in the mapping, nullptr is returned and std::string segfaults later on. | ||||
Steps To Reproduce | Use map "The Lord of War", load the attached save. End turn. In this particular case, Barbarian town has the following structures: 0: Гильдия Магов 1 уровня 1: Гильдия Магов 2 уровня 2: Гильдия Магов 3 уровня 5: Таверна 7: Форт 8: Цитадель 9: Замок 10: Сельская управа 11: Префектура 12: Муниципалитет 13: Капитолий 14: Рынок 15: Хранилище ресурсов 16: Кузница 17: Чёрный ход 18: Столовая 19: Столовая 21: Гильдия наёмников 22: Двор баллист 23: Храм валгаллы 26: Памятник богам войны But 27 is requested. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | The Lord of War.h3m (152,581) 2016-01-19 07:14 https://bugs.vcmi.eu/file_download.php?file_id=2436&type=bug save.zip (2,390,088) 2016-01-19 07:15 https://bugs.vcmi.eu/file_download.php?file_id=2437&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2016-01-19 07:14 | vmarkovtsev | New Issue | |||
2016-01-19 07:14 | vmarkovtsev | File Added: The Lord of War.h3m | |||
2016-01-19 07:15 | vmarkovtsev | File Added: save.zip | |||
2016-01-19 07:39 | vmarkovtsev | Note Added: 0006310 | |||
2016-01-19 08:20 | AVS | Note Added: 0006311 | |||
2016-01-19 08:28 | AVS | Note Added: 0006312 | |||
2016-01-19 09:45 | Warmonger | Note Added: 0006313 | |||
2016-01-19 10:06 | AVS | Note Added: 0006314 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|