Make sure lmine can't lay seamines even when sector changes
Reading the sector again invalidates the sector type check. Bug can currently bite only when the deity redesignates the sector. Call check_sect_ok() instead.
This commit is contained in:
parent
82ddc64e35
commit
a302d7613e
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ landmine(void)
|
|||
return RET_FAIL;
|
||||
if (mines_wanted == 0)
|
||||
continue;
|
||||
if (!check_land_ok(&land))
|
||||
if (!check_land_ok(&land) || !check_sect_ok(§))
|
||||
continue;
|
||||
land.lnd_mission = 0;
|
||||
total_mines_laid = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue