# HG changeset patch # User IBBoard # Date 1317238390 -3600 # Node ID b622937ac879811ac7d34062aa64ba885113c456 # Parent 22561233df69d9e053b79050f97e08f715ed1130 Fixes #362: Files fail to complete loading in GTK# UI (IBDev) * Change GameSystem hashcode to rely on unchanging values diff -r 22561233df69 -r b622937ac879 API/Objects/GameSystem.cs --- a/API/Objects/GameSystem.cs Mon Sep 26 20:17:37 2011 +0100 +++ b/API/Objects/GameSystem.cs Wed Sep 28 20:33:10 2011 +0100 @@ -238,19 +238,7 @@ public override int GetHashCode() { - return ID.GetHashCode() + Name.GetHashCode() + GetCategoryHash() + warnOnError.GetHashCode(); - } - - private int GetCategoryHash() - { - int hash = 0; - - foreach (Category cat in RawCategories.Values) - { - hash += cat.ID.GetHashCode(); - } - - return hash; + return ID.GetHashCode() + Name.GetHashCode(); } public bool UnitTypeMaxed(UnitType unitType, Army army)