Skip to content

Commit

Permalink
Fixed|Savegame: Session ID integer overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Feb 3, 2017
1 parent 3dc556a commit 7eaa38f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/apps/plugins/common/src/game/gamesession.cpp
Expand Up @@ -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)");
Expand Down

0 comments on commit 7eaa38f

Please sign in to comment.