diff options
Diffstat (limited to 'OpenSim/Framework/Console')
-rw-r--r-- | OpenSim/Framework/Console/OpenSimAppender.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Framework/Console/OpenSimAppender.cs b/OpenSim/Framework/Console/OpenSimAppender.cs index 5abbbdc..0246b39 100644 --- a/OpenSim/Framework/Console/OpenSimAppender.cs +++ b/OpenSim/Framework/Console/OpenSimAppender.cs | |||
@@ -123,7 +123,8 @@ namespace OpenSim.Framework.Console | |||
123 | 123 | ||
124 | private static ConsoleColor DeriveColor(string input) | 124 | private static ConsoleColor DeriveColor(string input) |
125 | { | 125 | { |
126 | return Colors[(input.ToUpper().GetHashCode() % Colors.Length)]; | 126 | // it is important to do Abs, hash values can be negative |
127 | return Colors[(Math.Abs(input.ToUpper().GetHashCode()) % Colors.Length)]; | ||
127 | } | 128 | } |
128 | } | 129 | } |
129 | } | 130 | } |