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'!
In this 'if':
https://github.com/opentibia/server/blob/master/src/database_driver.cpp#L144
You must add:
or it will remove item/house items on save [there is a little change to remove 1 item - last 'row' of 'insert' query], because:
2 lines above resets 'm_rows' and used everywhere is sources (ioplayer, iomapserialize):
does nothing, because 'm_rows' is 0.. but there is INSERT QUERY waiting to be send in 'm_buf'!