mirror of
https://github.com/ENSL/NS.git
synced 2024-11-22 12:41:33 +00:00
Fix crash when player completes a commander order. Credit to @RGreenlees
- The crash possibly only occured in debug mode?
This commit is contained in:
parent
1748d39d7e
commit
9f324e47b0
1 changed files with 1 additions and 1 deletions
|
@ -2331,7 +2331,7 @@ void AvHTeam::UpdateOrders()
|
||||||
const float kExpireTime = 1.0f;
|
const float kExpireTime = 1.0f;
|
||||||
if(!theOrderIter->GetOrderActive() && (theOrderIter->GetTimeOrderCompleted() != -1) && (gpGlobals->time > (theOrderIter->GetTimeOrderCompleted() + kExpireTime)))
|
if(!theOrderIter->GetOrderActive() && (theOrderIter->GetTimeOrderCompleted() != -1) && (gpGlobals->time > (theOrderIter->GetTimeOrderCompleted() + kExpireTime)))
|
||||||
{
|
{
|
||||||
this->mOrderList.erase(theOrderIter);
|
theOrderIter = this->mOrderList.erase(theOrderIter);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue