mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Null pointer fix.
This was SVN commit r6481.
This commit is contained in:
@@ -267,10 +267,14 @@ void QueueOrder(const CEntityOrder& order, const std::vector<HEntity> &entities,
|
||||
|
||||
for (it = entities.begin(); it < entities.end(); it++)
|
||||
{
|
||||
if( !isQueued )
|
||||
(*it)->ClearOrders();
|
||||
if (*it)
|
||||
{
|
||||
if( !isQueued ) {
|
||||
(*it)->ClearOrders();
|
||||
}
|
||||
|
||||
(*it)->PushOrder( order );
|
||||
(*it)->PushOrder( order );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user