[Scummvm-git-logs] scummvm master -> 3e41622f4d8a401156df5c54f79f361ebeb85be5
LittleToonCat
noreply at scummvm.org
Wed Oct 18 00:33:55 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
3e41622f4d HE SCUMM: Fix uninitialized members. PVS-Studio V730
Commit: 3e41622f4d8a401156df5c54f79f361ebeb85be5
https://github.com/scummvm/scummvm/commit/3e41622f4d8a401156df5c54f79f361ebeb85be5
Author: Little Cat (toontownlittlecat at gmail.com)
Date: 2023-10-17T21:33:37-03:00
Commit Message:
HE SCUMM: Fix uninitialized members. PVS-Studio V730
Changed paths:
engines/scumm/he/net/net_lobby.cpp
engines/scumm/he/net/net_main.cpp
diff --git a/engines/scumm/he/net/net_lobby.cpp b/engines/scumm/he/net/net_lobby.cpp
index b494f582027..e4bfe16f252 100644
--- a/engines/scumm/he/net/net_lobby.cpp
+++ b/engines/scumm/he/net/net_lobby.cpp
@@ -35,6 +35,12 @@ Lobby::Lobby(ScummEngine_v90he *vm) : _vm(vm) {
_userId = 0;
_userName = "";
+ _playerId = 0;
+
+ _areaIdForPopulation = 0;
+
+ _inArea = false;
+ _gamesPlaying = 0;
_sessionId = 0;
diff --git a/engines/scumm/he/net/net_main.cpp b/engines/scumm/he/net/net_main.cpp
index 7a7b7daf2f4..55ff7f465ce 100644
--- a/engines/scumm/he/net/net_main.cpp
+++ b/engines/scumm/he/net/net_main.cpp
@@ -47,6 +47,7 @@ Net::Net(ScummEngine_v90he *vm) : _latencyTime(1), _fakeLatency(false), _vm(vm)
_sessionServerPeer = -1;
_sessionServerHost = nullptr;
+ _gotSessions = false;
_isRelayingGame = false;
_numUsers = 0;
More information about the Scummvm-git-logs
mailing list