Skip to content
This repository has been archived by the owner on Mar 14, 2020. It is now read-only.

Items/Houses/Depot items/Storage can DISAPPEAR! #57

Open
gesior opened this issue Nov 14, 2016 · 0 comments
Open

Items/Houses/Depot items/Storage can DISAPPEAR! #57

gesior opened this issue Nov 14, 2016 · 0 comments

Comments

@gesior
Copy link

gesior commented Nov 14, 2016

In this 'if':
https://github.com/opentibia/server/blob/master/src/database_driver.cpp#L144

You must add:

m_rows++;

or it will remove item/house items on save [there is a little change to remove 1 item - last 'row' of 'insert' query], because:

if(!execute())

2 lines above resets 'm_rows' and used everywhere is sources (ioplayer, iomapserialize):

if(!stmt.execute()){

does nothing, because 'm_rows' is 0.. but there is INSERT QUERY waiting to be send in 'm_buf'!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant