1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-28 23:27:45 +00:00

minor fixes

This commit is contained in:
NotAdam 2018-08-26 18:48:45 +10:00
parent be1a5d53f3
commit ff43c45f67
2 changed files with 5 additions and 2 deletions

View file

@ -217,6 +217,9 @@ namespace Core {
startTown = 3;
startZone = 182;
break;
default:
break;
}
// "(AccountId, CharacterId, ContentId, Name, Hp, Mp, "

View file

@ -82,7 +82,7 @@ int8_t Core::ItemContainer::getFreeSlot()
Core::ItemPtr Core::ItemContainer::getItem( uint8_t slotId )
{
if( ( slotId > m_size ) || ( slotId == -1 ) )
if( ( slotId > m_size ) )
{
auto pLog = g_fw.get< Logger >();
pLog->error( "Slot out of range " + std::to_string( slotId ) );
@ -94,7 +94,7 @@ Core::ItemPtr Core::ItemContainer::getItem( uint8_t slotId )
void Core::ItemContainer::setItem( uint8_t slotId, ItemPtr pItem )
{
if( ( slotId > m_size ) )
if( slotId > m_size )
return;
m_itemMap[slotId] = pItem;