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:
Markus Armbruster 2009-02-14 09:18:34 +01:00
parent 82ddc64e35
commit a302d7613e

View file

@ -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(&sect))
continue;
land.lnd_mission = 0;
total_mines_laid = 0;