Issue information

Issue ID
#2078
Status
Fixed
Severity
Critical
Started
Hercules Elf Bot
Aug 17, 2008 12:30
Last Post
Hercules Elf Bot
Aug 17, 2008 12:30
Confirmation
N/A

Hercules Elf Bot - Aug 17, 2008 12:30

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

Hello, with new mapreg, there's a serious bug. Indexes aren't saved right, it's all baaaad (IMG:style_emoticons/default/smile.gif)
in mapreg_sql.c replace all
CODE
int i   = uid & 0xff000000 >> 24;

with
CODE
int i   = (uid & 0xff000000) >> 24;


... please don't ignore parenthesis..


CODE
int i   = (key.i & 0xff000000) >> 24;
in script_save_mapreg function too