mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Delete dynamic message subscriptions on simulation reset.
This was SVN commit r15646.
This commit is contained in:
@@ -500,6 +500,10 @@ void CComponentManager::Script_DestroyEntity(ScriptInterface::CxPrivate* pCxPriv
|
||||
|
||||
void CComponentManager::ResetState()
|
||||
{
|
||||
// Delete all dynamic message subscriptions
|
||||
m_DynamicMessageSubscriptionsNonsync.clear();
|
||||
m_DynamicMessageSubscriptionsNonsyncByComponent.clear();
|
||||
|
||||
// Delete all IComponents
|
||||
std::map<ComponentTypeId, std::map<entity_id_t, IComponent*> >::iterator iit = m_ComponentsByTypeId.begin();
|
||||
for (; iit != m_ComponentsByTypeId.end(); ++iit)
|
||||
|
||||
Reference in New Issue
Block a user