mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-01 08:27:46 +00:00
Tiny cleanup
This commit is contained in:
parent
cb6672b770
commit
920da4de3b
5 changed files with 7 additions and 7 deletions
|
@ -1,12 +1,12 @@
|
|||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <cstdint>
|
||||
#include <iostream>
|
||||
|
||||
#include <sstream>
|
||||
#include <time.h>
|
||||
#include <ctime>
|
||||
|
||||
#include <string.h>
|
||||
#include <cstring>
|
||||
#include <memory>
|
||||
#include <Util/Util.h>
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include <Service.h>
|
||||
|
||||
#include "Actor/BNpc.h"
|
||||
#include "Inventory/Item.h";
|
||||
#include "Inventory/Item.h"
|
||||
|
||||
// Quest Script: JobWhm001_01124
|
||||
// Quest Name: A Relic Reborn (Thyrus)
|
||||
|
|
|
@ -34,7 +34,7 @@ public:
|
|||
if( num == 0 )
|
||||
num = std::thread::hardware_concurrency() - 1;
|
||||
|
||||
for( auto i = 0; i < num; ++i )
|
||||
for( auto i = 0u; i < num; ++i )
|
||||
{
|
||||
m_workers.push_back( std::async( std::launch::async, [this]{ run(); } ) );
|
||||
}
|
||||
|
|
|
@ -86,5 +86,5 @@ void ItemAction::handleMountItem()
|
|||
auto player = getSourceChara()->getAsPlayer();
|
||||
|
||||
player->unlockMount( m_itemAction->data().Calcu0Arg[ 0 ] );
|
||||
player->dropInventoryItem( static_cast< Common::InventoryType >( m_itemSourceContainer ), m_itemSourceSlot );
|
||||
player->dropInventoryItem( static_cast< Common::InventoryType >( m_itemSourceContainer ), static_cast< uint8_t >( m_itemSourceSlot ) );
|
||||
}
|
|
@ -31,7 +31,7 @@ namespace Sapphire::World::Manager
|
|||
if constexpr( std::is_integral< T >::value )
|
||||
return m_intDist( *m_engine );
|
||||
|
||||
return m_fpuDist( *m_engine );
|
||||
return static_cast< T >( m_fpuDist( *m_engine ) );
|
||||
}
|
||||
|
||||
// returns an array of size nSize with values type T on set ranges, deducing real or integer distribution from given numeric type
|
||||
|
|
Loading…
Add table
Reference in a new issue