summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-09 01:57:22 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-09 01:57:22 +0100
commitc68bdaf34beee368100e6697fc3d87a711dba6b7 (patch)
treec7891201022913cff7e955057c1cdf900fedc963 /src/WorldStorage
parentMerge remote-tracking branch 'origin/master' into playerimprovements (diff)
downloadcuberite-c68bdaf34beee368100e6697fc3d87a711dba6b7.tar
cuberite-c68bdaf34beee368100e6697fc3d87a711dba6b7.tar.gz
cuberite-c68bdaf34beee368100e6697fc3d87a711dba6b7.tar.bz2
cuberite-c68bdaf34beee368100e6697fc3d87a711dba6b7.tar.lz
cuberite-c68bdaf34beee368100e6697fc3d87a711dba6b7.tar.xz
cuberite-c68bdaf34beee368100e6697fc3d87a711dba6b7.tar.zst
cuberite-c68bdaf34beee368100e6697fc3d87a711dba6b7.zip
Diffstat (limited to 'src/WorldStorage')
-rw-r--r--src/WorldStorage/ScoreboardSerializer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WorldStorage/ScoreboardSerializer.cpp b/src/WorldStorage/ScoreboardSerializer.cpp
index c65e13f98..9b8b661c4 100644
--- a/src/WorldStorage/ScoreboardSerializer.cpp
+++ b/src/WorldStorage/ScoreboardSerializer.cpp
@@ -242,7 +242,7 @@ bool cScoreboardSerializer::LoadScoreboardFromNBT(const cParsedNBT & a_NBT)
{
AString Name, ObjectiveName;
- cObjective::Score Score;
+ cObjective::Score Score = 0;
int CurrLine = a_NBT.FindChildByName(Child, "Score");
if (CurrLine >= 0)
@@ -280,7 +280,7 @@ bool cScoreboardSerializer::LoadScoreboardFromNBT(const cParsedNBT & a_NBT)
{
AString Name, DisplayName, Prefix, Suffix;
- bool AllowsFriendlyFire, CanSeeFriendlyInvisible;
+ bool AllowsFriendlyFire = false, CanSeeFriendlyInvisible = false;
int CurrLine = a_NBT.FindChildByName(Child, "Name");
if (CurrLine >= 0)