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 wrap: on
line diff
--- a/api/Objects/GameSystem.cs	Sun Feb 13 20:55:13 2011 +0000
+++ b/api/Objects/GameSystem.cs	Sun Feb 13 21:03:12 2011 +0000
@@ -324,12 +324,14 @@
 		
 		public string GetPointsAbbrev(double pointTemp)
 		{
-			return (pointTemp == 1 ? SystemPtsAbbrevSingle : SystemPtsAbbrevPlural);
+			string str = (pointTemp == 1 ? SystemPtsAbbrevSingle : SystemPtsAbbrevPlural);
+			return (str == null ? "" : str);
 		}
 
 		public string GetPointsName(double pointTemp)
 		{
-			return (pointTemp == 1 ? SystemPtsNameSingle : SystemPtsNamePlural);
+			string str = (pointTemp == 1 ? SystemPtsNameSingle : SystemPtsNamePlural);
+			return (str == null ? "" : str);
 		}
 	}
 }