HPL1: Fixed uninitilized variables reported by valgrind

This commit is contained in:
Paweł Kołodziejski 2022-08-04 20:06:24 +02:00 committed by Eugene Sandulenko
parent 96768dcde7
commit 75ffdcddde
No known key found for this signature in database
GPG Key ID: 014D387312D34F08
2 changed files with 4 additions and 0 deletions

View File

@ -802,6 +802,8 @@ cNotebook::cNotebook(cInit *apInit) : iUpdateable("Notebook") {
mpInit = apInit;
mpDrawer = mpInit->mpGame->GetGraphics()->GetDrawer();
mbInventoryWasActive = false;
Reset();
mpGfxBackground = mpDrawer->CreateGfxObject("notebook_background.bmp", "diffalpha2d");

View File

@ -80,6 +80,8 @@ cPlayer::cPlayer(cInit *apInit) : iUpdateable("Player") {
mvSize.y = mpInit->mpGameConfig->GetFloat("Player", "Height", 1);
mvSize.z = mvSize.x;
mpPushBody = nullptr;
mfCameraHeightAdd = mpInit->mpGameConfig->GetFloat("Player", "CameraHeightAdd", 0);
mfDefaultMass = mpInit->mpGameConfig->GetFloat("Player", "Mass", 1);