MantisBT - VCMI
View Issue Details
0002258VCMIGUI - Hero screen / Exchange windowpublic2015-09-19 12:322016-11-11 08:26
arwer13 
AVS 
highcrashalways
closedfixed 
LinuxArch Linux x64upstream
0.98c 
0.98d 
0002258: Crash on moving a slot in garrison if slot is single
VCMI version: git-develop.
This bug happens either in hero and town garrison, only if there are a single slot in it.

Crashes with Segmentaion Fault in line
LOCPLINT->cb->splitStack(selectedObj, owner->armedObjs[upg], selection->ID, ID, myStack->count - 1)
because myStack is nullptr in this case.
No tags attached.
Issue History
2015-09-19 12:32arwer13New Issue
2015-09-19 12:36arwer13Statusnew => feedback
2015-09-19 14:09AVSAssigned To => AVS
2015-09-19 14:09AVSStatusfeedback => assigned
2015-09-19 14:21AVSNote Added: 0005870
2015-09-19 14:21AVSStatusassigned => resolved
2015-09-19 14:21AVSFixed in Version => 0.98d
2015-09-19 14:21AVSResolutionopen => fixed
2016-11-11 08:26SXXStatusresolved => closed

Notes
(0005870)
AVS   
2015-09-19 14:21   
Regression of PR 115 https://github.com/vcmi/vcmi/pull/115. [^]
Fixed in https://github.com/vcmi/vcmi/commit/8cad23956c81f02c12583a022a333e34ce91c184 [^]