mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
* reworked system of animations in battles; it's not fully working yet, but crashes should not occur
* fix for previous fix for two-hex creatures (my previous commit) (this one should work better, certainly has nicer code)
This commit is contained in:
@ -720,7 +720,10 @@ DLL_EXPORT void BattleAttack::applyGs( CGameState *gs )
|
||||
DLL_EXPORT void StartAction::applyGs( CGameState *gs )
|
||||
{
|
||||
CStack *st = gs->curB->getStack(ba.stackNumber);
|
||||
assert(st);
|
||||
|
||||
if(ba.actionType != 1) //don't check for stack if it's custom action by hero
|
||||
assert(st);
|
||||
|
||||
switch(ba.actionType)
|
||||
{
|
||||
case 3:
|
||||
|
Reference in New Issue
Block a user