From 7eaa38fc64ffda656cb15b5e30cf65b427f8ecea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= Date: Fri, 3 Feb 2017 12:07:51 +0200 Subject: [PATCH] Fixed|Savegame: Session ID integer overflow --- doomsday/apps/plugins/common/src/game/gamesession.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doomsday/apps/plugins/common/src/game/gamesession.cpp b/doomsday/apps/plugins/common/src/game/gamesession.cpp index 593197559b..f913c31c2d 100644 --- a/doomsday/apps/plugins/common/src/game/gamesession.cpp +++ b/doomsday/apps/plugins/common/src/game/gamesession.cpp @@ -190,7 +190,7 @@ DENG2_PIMPL(GameSession), public GameStateFolder::IMapStateReaderFactory GameStateMetadata meta; - meta.set("sessionId", duint(Timer_RealMilliseconds() + (mapTime << 24))); + meta.set("sessionId", duint(Timer_RealMilliseconds() + (mapTime << 24)) & DDMAXINT); meta.set("gameIdentityKey", AbstractSession::gameId()); meta.set("episode", episodeId); meta.set("userDescription", "(Unsaved)");