fixed import of usdx 1.1 highscores (if the contain date NULL)

This commit is contained in:
Alexander Eckart committed 2012-12-28 21:48:06 +01:00
1 parent 3b77b4dfde
commit 3e7a0cc984
1 file changed
+9 -1
+9 -1
View File
@@ -716,7 +716,15 @@ namespace Vocaluxe.Base
SData data = new SData();
data.id = reader.GetInt32(0);
data.str1 = reader.GetString(1);
data.ticks = UnixTimeToTicks((int)reader.GetInt64(2));
Int64 ticks = 0;
try
{
ticks = reader.GetInt64(2);
}
catch { }
data.ticks = UnixTimeToTicks((int)ticks);
scores.Add(data);
}