Skip to content

Commit

Permalink
Fixed an issue with items accidentally made equippable from all classes
Browse files Browse the repository at this point in the history
- Follow-up to 15a0f6d
- Fixes dagger items being equippable by acolyte classes (and possibly
  many other issues)
- Issue caused by an incorrect capping method when the Job field is set
  to a value greater than 0x7fffffff

Signed-off-by: Haru <haru@dotalux.com>
  • Loading branch information
MishimaHaruna committed Dec 30, 2013
1 parent 1591bbc commit 671d61a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 3rdparty/libconfig/extra/gen/scanner.l
Expand Up @@ -89,7 +89,7 @@ static unsigned long long fromhex(const char *s)
static int fromihex(const char *s) {
unsigned long l = strtoul(s, NULL, 16);
if (l > INT32_MAX)
l = INT32_MAX;
l &= INT32_MAX;
return (int)l;
}

Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/libconfig/scanner.c
Expand Up @@ -628,7 +628,7 @@ static unsigned long long fromhex(const char *s)
static int fromihex(const char *s) {
unsigned long l = strtoul(s, NULL, 16);
if (l > INT32_MAX)
l = INT32_MAX;
l &= INT32_MAX;
return (int)l;
}

Expand Down

0 comments on commit 671d61a

Please sign in to comment.