Core/Errors: Stop using System.Diagnostics.Contracts, Its just closing the server without error or warning. We now log the error and then throw a exception
This commit is contained in:
@@ -27,7 +27,6 @@ using Game.Network.Packets;
|
||||
using Game.Spells;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.Contracts;
|
||||
using System.Linq;
|
||||
|
||||
namespace Game.Entities
|
||||
@@ -662,7 +661,7 @@ namespace Game.Entities
|
||||
return false;
|
||||
}
|
||||
|
||||
Contract.Assert(i_disabledAI == null, "The disabled AI wasn't cleared!");
|
||||
Cypher.Assert(i_disabledAI == null, "The disabled AI wasn't cleared!");
|
||||
|
||||
i_AI = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user