Issue information

Issue ID
#2931
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Apr 1, 2009 19:14
Last Post
Hercules Elf Bot
Apr 1, 2009 19:14
Confirmation
N/A

Hercules Elf Bot - Apr 1, 2009 19:14

Originally posted by [b]HiddenDragon[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=2931

Small bug with item_noequip.txt and the way it reads the file.

src/map/itemdb.c:
CODE
        id->flag.no_equip=atoi(str[1]);


This should use the bitwise OR operator to add on additional restrictions (modes). The current code REPLACES later definitions.

Therefore it should be:

CODE
        id->flag.no_equip |= atoi(str[1]);


This way it matches skill_nocast_db.txt as well.