mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 14:57:44 +00:00
fix stupid return type mistake
This commit is contained in:
parent
f1121b52b2
commit
facba12fed
1 changed files with 3 additions and 3 deletions
|
@ -34,8 +34,6 @@ namespace Util
|
||||||
|
|
||||||
T freeUsedSpawnIndex( ActorIdType actorId )
|
T freeUsedSpawnIndex( ActorIdType actorId )
|
||||||
{
|
{
|
||||||
assert( m_maxSlotId != 0 );
|
|
||||||
|
|
||||||
auto it = m_actorIdToAllocatedMap.find( actorId );
|
auto it = m_actorIdToAllocatedMap.find( actorId );
|
||||||
if( it == m_actorIdToAllocatedMap.end() )
|
if( it == m_actorIdToAllocatedMap.end() )
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -47,7 +45,7 @@ namespace Util
|
||||||
return index;
|
return index;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool getNextFreeSpawnIndex( ActorIdType actorId )
|
T getNextFreeSpawnIndex( ActorIdType actorId )
|
||||||
{
|
{
|
||||||
assert( m_maxSlotId != 0 );
|
assert( m_maxSlotId != 0 );
|
||||||
|
|
||||||
|
@ -82,6 +80,8 @@ namespace Util
|
||||||
protected:
|
protected:
|
||||||
void setupQueue()
|
void setupQueue()
|
||||||
{
|
{
|
||||||
|
assert( m_maxSlotId != 0 );
|
||||||
|
|
||||||
while( !m_availableIds.empty() )
|
while( !m_availableIds.empty() )
|
||||||
m_availableIds.pop();
|
m_availableIds.pop();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue