Fixed bad AFF_SCUBA check for underwater rooms. --Rumble

This commit is contained in:
Rumble 2010-01-18 16:19:28 +00:00
parent 6d80a8a12b
commit 8a72cfcb39
3 changed files with 9 additions and 5 deletions

View file

@ -104,7 +104,7 @@ int has_scuba(struct char_data *ch)
/* Any equipped objects with AFF_SCUBA will do it too. */
for (i = 0; i < NUM_WEARS; i++)
if (GET_EQ(ch, i) && OBJAFF_FLAGGED(obj, AFF_SCUBA))
if (GET_EQ(ch, i) && OBJAFF_FLAGGED(GET_EQ(ch, i), AFF_SCUBA))
return (1);
return (0);