Issue information

Issue ID
#4279
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Jun 5, 2010 8:51
Last Post
Hercules Elf Bot
Jun 5, 2010 8:51
Confirmation
N/A

Hercules Elf Bot - Jun 5, 2010 8:51

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

Since getinventorylist stores the data as a temporary character variable, the data does not get cleared after the scope ends. If getinventorylist is called and the player removes some items from inventory (i.e. storage, drops, trades), and then the function is called again, the data from the first getinventorylist may not be overwritten, which leads to inaccurate reporting of a player's inventory.

This can be fixed if the arrays were cleared before each usage.

This post has been edited by Usus: Jun 5 2010, 03:05 AM