changeset 308:e1438fb9024c

Re #99: Define "points" values in GameSystem * Update to make sure that we don't return null
author IBBoard <dev@ibboard.co.uk>
date Sun, 13 Feb 2011 21:03:12 +0000
parents afa7a5dd0eea
children 7e1b27843b0d
files api/Objects/GameSystem.cs
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/api/Objects/GameSystem.cs	Sun Feb 13 20:55:13 2011 +0000
     1.2 +++ b/api/Objects/GameSystem.cs	Sun Feb 13 21:03:12 2011 +0000
     1.3 @@ -324,12 +324,14 @@
     1.4  		
     1.5  		public string GetPointsAbbrev(double pointTemp)
     1.6  		{
     1.7 -			return (pointTemp == 1 ? SystemPtsAbbrevSingle : SystemPtsAbbrevPlural);
     1.8 +			string str = (pointTemp == 1 ? SystemPtsAbbrevSingle : SystemPtsAbbrevPlural);
     1.9 +			return (str == null ? "" : str);
    1.10  		}
    1.11  
    1.12  		public string GetPointsName(double pointTemp)
    1.13  		{
    1.14 -			return (pointTemp == 1 ? SystemPtsNameSingle : SystemPtsNamePlural);
    1.15 +			string str = (pointTemp == 1 ? SystemPtsNameSingle : SystemPtsNamePlural);
    1.16 +			return (str == null ? "" : str);
    1.17  		}
    1.18  	}
    1.19  }