artType->id, 0, 466, 100), true"> artType->id, 0, 466, 100), true">
Anonymous | Login | 2024-11-21 19:13 UTC |
My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0000964 | VCMI | GUI - Hero screen / Exchange window | public | 2012-05-22 10:21 | 2014-05-30 17:41 | ||||
Reporter | Warmonger | ||||||||
Assigned To | Ivan | ||||||||
Priority | urgent | Severity | crash | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | PC | OS | Windows 7 | OS Version | SP1 | ||||
Product Version | |||||||||
Target Version | 0.89 | Fixed in Version | 0.89 | ||||||
Summary | 0000964: Assertion fail when drawing stack/commander artifact in CreatureWindow | ||||||||
Description | It worked well before image improvements were added. The assumption that artifactImage is non-existant seems wrong, as it's a part of Creature Window. assert(!vstd::contains(children, child)); addChild(artifactImage = new CAnimImage("ARTIFACT", creatureArtifact->artType->id, 0, 466, 100), true); I'm living it for Ivan, he knows what it was supposed to do. | ||||||||
Steps To Reproduce | Commander artifacts now drop as random relics. Creature artifacts can be added in editor. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Notes | |
(0002519) Ivan (developer) 2012-05-22 15:38 |
Probably you're trying to add already present child to object. This may happen if you have OBJ_CONSTRUCTION macro in scope. As result any CIntObject-based class will get parent during construction. To fix - either remove addChild (it will be called in CIntObject construction) OR add BLOCK_CAPTURING macro before call. |
(0002520) Ivan (developer) 2012-05-22 16:22 |
Sorry - don't have sources right now. This should fix it: function void CCreatureWindow::setArt add OBJ_CONSTRUCTION_CAPTURING_ALL macro at the beginning and remove addChild call. This should be all. |
(0002523) Warmonger (administrator) 2012-05-22 17:18 |
Fixed crash. However, I'm not sure how properly set CAnimImage to display no artifact at all. But we cna live with it in dev release. |
Issue History | |||
Date Modified | Username | Field | Change |
2012-05-22 10:21 | Warmonger | New Issue | |
2012-05-22 10:21 | Warmonger | Status | new => assigned |
2012-05-22 10:21 | Warmonger | Assigned To | => Ivan |
2012-05-22 15:38 | Ivan | Note Added: 0002519 | |
2012-05-22 16:22 | Ivan | Note Added: 0002520 | |
2012-05-22 17:18 | Warmonger | Note Added: 0002523 | |
2012-05-22 17:18 | Warmonger | Status | assigned => resolved |
2012-05-22 17:18 | Warmonger | Fixed in Version | => 0.89 |
2012-05-22 17:18 | Warmonger | Resolution | open => fixed |
2014-05-30 17:41 | beegee | Status | resolved => closed |
Copyright © 2000 - 2024 MantisBT Team |