[longomatch] Fix Color getter in the team template



commit c9fce3abe93f27ae9c0ef40edfa20d09f24ba2b9
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu Mar 5 13:33:54 2015 +0100

    Fix Color getter in the team template

 LongoMatch.Core/Store/Templates/TeamTemplate.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Core/Store/Templates/TeamTemplate.cs b/LongoMatch.Core/Store/Templates/TeamTemplate.cs
index 1c3cec6..4c37270 100644
--- a/LongoMatch.Core/Store/Templates/TeamTemplate.cs
+++ b/LongoMatch.Core/Store/Templates/TeamTemplate.cs
@@ -92,7 +92,7 @@ namespace LongoMatch.Core.Store.Templates
                [JsonIgnore]
                public Color Color {
                        get {
-                               if (ActiveColor <= Colors.Length) {
+                               if (ActiveColor > 0 && ActiveColor <= Colors.Length) {
                                        return Colors [ActiveColor];
                                } else {
                                        ActiveColor = 0;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]