diff --git a/OpenSim/Framework/Console/OpenSimAppender.cs b/OpenSim/Framework/Console/OpenSimAppender.cs index 5abbbdc270..0246b39b1e 100644 --- a/OpenSim/Framework/Console/OpenSimAppender.cs +++ b/OpenSim/Framework/Console/OpenSimAppender.cs @@ -123,7 +123,8 @@ namespace OpenSim.Framework.Console private static ConsoleColor DeriveColor(string input) { - return Colors[(input.ToUpper().GetHashCode() % Colors.Length)]; + // it is important to do Abs, hash values can be negative + return Colors[(Math.Abs(input.ToUpper().GetHashCode()) % Colors.Length)]; } } }