1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-05-31 22:59:54 +02:00

Fixed crash on opening creature window in battle

This commit is contained in:
Ivan Savenko 2014-08-11 15:57:15 +03:00
parent a115406fa3
commit 8f1a4fcb56

View File

@ -789,7 +789,8 @@ void CStackWindow::init()
}
CStackWindow::CStackWindow(const CStack * stack, bool popup):
CWindowObject(BORDERED | (popup ? RCLICK_POPUP : 0))
CWindowObject(BORDERED | (popup ? RCLICK_POPUP : 0)),
info(new StackWindowInfo())
{
info->stackNode = stack->base;
info->creature = stack->type;