fix crash entering sopka.map for second time

This commit is contained in:
Ondřej Novák 2025-02-05 10:41:40 +01:00
parent 93caf370e4
commit 0ae638276e
3 changed files with 10 additions and 9 deletions

View file

@ -705,7 +705,7 @@ void wire_end_game()
for(i=0;i<MAX_MOBS;i++) if (mobs[i].vlajky & MOB_LIVE) mobs[i].vlajky&=~MOB_IN_BATTLE;
for (int i = 0; i < POCET_POSTAV; ++i) {
if (postavy[i].used && postavy[i].inmaphash != current_map_hash) {
if (postavy[i].used && postavy[i].inmaphash != current_map_hash && postavy[i].lives) {
const char *mname = find_map_from_hash(postavy[i].inmaphash);
if (mname != NULL) {
cur_group = postavy[i].groupnum;