1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 14:57:44 +00:00

fix msvc builds?

This commit is contained in:
NotAdam 2018-09-01 14:36:04 +10:00
parent 72ea5d689b
commit 92d9268e25
2 changed files with 2 additions and 2 deletions

View file

@ -75,7 +75,7 @@ private:
player.playScene( getId(), 1, HIDE_HOTBAR,
[ & ]( Entity::Player& player, const Event::SceneResult& result )
{
if( result.param2 == 1 && player.collectHandInItems( { Ritem0 } ) )
if( result.param2 == 1 && player.collectHandInItems( { uint32_t{ Ritem0 } } ) )
{
Scene00100( player );
}

View file

@ -795,7 +795,7 @@ uint8_t Core::Entity::Player::getFreeSlotsInBags()
bool Core::Entity::Player::collectHandInItems( std::vector< uint32_t > itemIds )
{
// todo: figure out how the game gets the required stack count
auto& container = m_storageMap[HandIn];
const auto& container = m_storageMap[ HandIn ];
std::vector< uint8_t > foundItems;