diff options
author | Sergey Yershov <yershov@corp.mail.ru> | 2016-06-10 18:08:47 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-06-30 14:47:45 +0300 |
commit | a9d57e8e8aaaba02aebcf9e749e6a653f4ab4442 (patch) | |
tree | 4561b9088f4e18d900a46af8dbff8d7454591734 /editor | |
parent | 1218f30c25d96025d15f01e0471af08c40c69e4b (diff) |
Fix compiler warnings
Diffstat (limited to 'editor')
-rw-r--r-- | editor/user_stats.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/user_stats.cpp b/editor/user_stats.cpp index c905f460ea..22b5eddec6 100644 --- a/editor/user_stats.cpp +++ b/editor/user_stats.cpp @@ -179,8 +179,10 @@ string UserStatsLoader::GetUserName() const bool UserStatsLoader::LoadFromSettings() { - uint32_t rating, changesCount; - uint64_t lastUpdate; + uint32_t rating = 0; + uint32_t changesCount = 0; + uint64_t lastUpdate = 0; + if (!settings::Get(kSettingsUserName, m_userName) || !settings::Get(kSettingsChangesCount, changesCount) || !settings::Get(kSettingsRating, rating) || |