Fixed bug where the first registered forward would be automatically unregistered on unregisterForward too
This commit is contained in:
parent
66da3375ba
commit
e378c45be7
@ -397,13 +397,11 @@ bool CForwardMngr::isSPForward(int id) const
|
||||
|
||||
void CForwardMngr::unregisterSPForward(int id)
|
||||
{
|
||||
unsigned int i = 0;
|
||||
|
||||
//make sure the id is valid
|
||||
if ( !isIdValid(id) || m_SPForwards.at(i >> 1)->isFree )
|
||||
if ( !isIdValid(id) || m_SPForwards.at(id >> 1)->isFree )
|
||||
return;
|
||||
|
||||
m_SPForwards.at(i >> 1)->isFree = true;
|
||||
m_SPForwards.at(id >> 1)->isFree = true;
|
||||
|
||||
m_FreeSPForwards.push(id);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user