Fix invalid locks not appearing in minimap.

This commit is contained in:
Mari the Deer 2021-03-10 21:19:39 +01:00
commit de525e6b3a
3 changed files with 4 additions and 5 deletions

View file

@ -1294,8 +1294,7 @@ Class SWWMStatusBar : BaseStatusBar
|| (l.special == Teleport_Line)) )
col = mm_intralevelcolor;
else if ( mm_displaylocks
&& (lock > 1) && (lock < 256)
&& SWWMUtility.IsValidLockNum(lock) )
&& (lock > 0) && (lock < 256) )
{
let lcol = SWWMUtility.GetLockColor(lock);
if ( lcol ) col = lcol;