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 )
|
||||
{
|
||||
assert( m_maxSlotId != 0 );
|
||||
|
||||
auto it = m_actorIdToAllocatedMap.find( actorId );
|
||||
if( it == m_actorIdToAllocatedMap.end() )
|
||||
return 0;
|
||||
|
@ -47,7 +45,7 @@ namespace Util
|
|||
return index;
|
||||
}
|
||||
|
||||
bool getNextFreeSpawnIndex( ActorIdType actorId )
|
||||
T getNextFreeSpawnIndex( ActorIdType actorId )
|
||||
{
|
||||
assert( m_maxSlotId != 0 );
|
||||
|
||||
|
@ -82,6 +80,8 @@ namespace Util
|
|||
protected:
|
||||
void setupQueue()
|
||||
{
|
||||
assert( m_maxSlotId != 0 );
|
||||
|
||||
while( !m_availableIds.empty() )
|
||||
m_availableIds.pop();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue