mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-27 01:24:51 -04:00
fix crash entering sopka.map for second time
This commit is contained in:
parent
93caf370e4
commit
0ae638276e
3 changed files with 10 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue