blob: 0b40eeaafcabf46d299f45a89bc7280cda1300b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
Author: Andreas Beckmann <anbe@debian.org>
Description: fix FTBFS with 64-bit time_t on 32-bit architectures
--- a/src/CReplayData.cpp
+++ b/src/CReplayData.cpp
@@ -38,7 +38,8 @@ ReplayData::~ReplayData()
void ReplayData::printReplayInformation()
{
- tm *timeinfo = localtime(&header.randomSeed);
+ time_t t = header.randomSeed;
+ tm *timeinfo = localtime(&t);
printf("Recorded on : %s", asctime(timeinfo));
printf("Map : %s\n", header.map);
printf("Score : %d\n", header.score);
|