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

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

@gesior

Description

@gesior

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'!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions