Browse Source

Temporarily disabling of RemoveSpell on entity despawn, mandated passive spells -- this is to avoid a crash and was here for a mem leak fix

Emagi 11 months ago
parent
commit
f303fa5895
1 changed files with 2 additions and 2 deletions
  1. 2 2
      EQ2/source/WorldServer/Entity.cpp

+ 2 - 2
EQ2/source/WorldServer/Entity.cpp

@@ -131,10 +131,10 @@ void Entity::DeleteSpellEffects(bool removeClient)
 		}
 		if(GetInfoStruct()->spell_effects[i].spell_id != 0xFFFFFFFF)
 		{
-			if(GetInfoStruct()->spell_effects[i].spell && GetInfoStruct()->spell_effects[i].spell->spell && 
+			/*if(GetInfoStruct()->spell_effects[i].spell && GetInfoStruct()->spell_effects[i].spell->spell && 
 				GetInfoStruct()->spell_effects[i].spell->spell->GetSpellData()->spell_book_type == SPELL_BOOK_TYPE_NOT_SHOWN) {
 				lua_interface->RemoveSpell(GetInfoStruct()->spell_effects[i].spell, false, removeClient, "", removeClient);
-			}
+			}*/
 			GetInfoStruct()->spell_effects[i].spell_id = 0xFFFFFFFF;
 			GetInfoStruct()->spell_effects[i].spell = nullptr;
 		}