Issue information

Issue ID
#7781
Status
Fixed
Severity
None
Started
mleo1
Oct 23, 2013 10:15
Last Post
Ind
Oct 24, 2013 7:02
Confirmation
Yes (0)
No (3)

mleo1 - Oct 23, 2013 10:15

add this on itemdb2, it will crash on start dunno.

50003,Red_Potion,Red Potion,0,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ itemheal rand(45,65),0; },{},{}

[code=auto:0] > map-server.exe!itemdb_readdb() Line 1814 + 0x6 bytes C map-server.exe!itemdb_read() Line 1931 + 0xf bytes C map-server.exe!do_init_itemdb() Line 2176 + 0xf bytes C map-server.exe!do_init(int argc, char * * argv) Line 5517 + 0xb bytes C map-server.exe!main(int argc, char * * argv) Line 340 + 0xd bytes C map-server.exe!__tmainCRTStartup() Line 278 + 0x19 bytes C map-server.exe!mainCRTStartup() Line 189 C kernel32.dll!7c81776f() [Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll] map-server.exe!mob_class_change(mob_data * md, int class_) Line 2726 + 0x1e bytes C [/code]

Frost - Oct 23, 2013 11:34

because i think the item db supports only 32767

evilpuncker - Oct 23, 2013 16:03

[quote name="Frost" timestamp="1382528084"]
because i think the item db supports only 32767[/quote]

indeed.

#define MAX_ITEMDB 0x8000

mleo1 - Oct 23, 2013 18:01

ok, it was working last time until I updated, thanks

Ind - Oct 24, 2013 6:58

what they say is true, the limit is that (and its why the crash was caused), however the crash shouldn't be happening, it demonstrates a flaw in the code. working on it

Ind - Oct 24, 2013 7:02

Fixed in [url="https://github.com/HerculesWS/Hercules/commit/45d8123e73ea9b213ad57c32524286fe44a08721"]https://github.com/HerculesWS/Hercules/commit/45d8123e73ea9b213ad57c32524286fe44a08721[/url]