mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
* Fixed #1096
* serializing icon index, otherwise creature portraits are gone after loading a game * VCAI: fixed crash on attempting revisiting a boat (that is no longer present because it was boarded) * Fixed strange crash with "neutral hero" (there should be no such thing... but somehow it appears, needs further investigation)
This commit is contained in:
@ -568,6 +568,12 @@ void CMapHandler::terrainRect( int3 top_tile, ui8 anim, const std::vector< std::
|
||||
|
||||
if(themp) //hero
|
||||
{
|
||||
if(themp->tempOwner >= GameConstants::PLAYER_LIMIT) //Neutral hero?
|
||||
{
|
||||
tlog1 << "A neutral hero (" << themp->name << ") at " << themp->pos << ". Should not happen!\n";
|
||||
continue;
|
||||
}
|
||||
|
||||
dir = themp->moveDir;
|
||||
|
||||
//pick graphics of hero (or boat if hero is sailing)
|
||||
|
Reference in New Issue
Block a user