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

Trade confirmation doesn't work with amounts over 255(applicable to Gil trades) #6282

@Hokuten85

Description

@Hokuten85

I have:

  • searched existing issues (http://github.com/darkstarproject/darkstar/issues/) to see if the issue I am posting has already been addressed or opened by another contributor
  • checked the commit log to see if my issue has been resolved since my server was last updated

Client Version (type /ver in game) :
0.0.8319

Source Branch (master/stable) :
master

Additional Information (Steps to reproduce/Expected behavior) :
Should be able to reproduce this by attempting to confirmSlot or confirmItem on a trade involving Gil with an amount over 255, and then call trade:confirmTrade(). All of the amount parameters in the functions involved are defined as uint8.

src/map/trade_container.cpp
getConfirmedStatus
setConfirmedStatus

src/map/trade_container.h
getConfirmedStatus
setConfirmedStatus
std::vector m_confirmed;

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