- all SectUsers replaced, except for the maintenance code of the array.

This commit is contained in:
Christoph Oelckers 2021-11-19 23:20:58 +01:00
parent bd43f49c29
commit 56a1836e68
7 changed files with 38 additions and 39 deletions

View file

@ -180,13 +180,11 @@ void DoRotatorMatch(PLAYERp pp, short match, bool manual)
if (firstVator == nullptr)
firstVator = actor;
sectnum = fsp->sectnum;
auto sect = fsp->sector();
if (pp && SectUser[sectnum].Data() && SectUser[sectnum]->stag == SECT_LOCK_DOOR && SectUser[sectnum]->number)
if (pp && sect->hasU() && sect->u()->stag == SECT_LOCK_DOOR && sect->u()->number)
{
short key_num;
key_num = SectUser[sectnum]->number;
int key_num = sect->u()->number;
{
PutStringInfo(pp, quoteMgr.GetQuote(QUOTE_DOORMSG + key_num - 1));