Skip to content

Commit

Permalink
Fix crash in naval combat
Browse files Browse the repository at this point in the history
  • Loading branch information
DjWarmonger authored and IvanSavenko committed Aug 4, 2023
1 parent 07ab7c2 commit 6e7a027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/CGameHandler.cpp
Expand Up @@ -2122,7 +2122,7 @@ void CGameHandler::setupBattle(int3 tile, const CArmedInstance *armies[2], const

BattleField terType = gs->battleGetBattlefieldType(tile, getRandomGenerator());
if (heroes[0] && heroes[0]->boat && heroes[1] && heroes[1]->boat)
terType = BattleField(*VLC->modh->identifiers.getIdentifier("core", "battlefield", "ship_to_ship"));
terType = BattleField(*VLC->modh->identifiers.getIdentifier("core", "battlefield.ship_to_ship"));

//send info about battles
BattleStart bs;
Expand Down

0 comments on commit 6e7a027

Please sign in to comment.