1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

- wrokaround/fix for #1177

- removed assert in Fonts.cpp (can be triggered a lot by old pregame\battles code)
- fixed battle console text positioning
- fixed some new compiler warnings
This commit is contained in:
Ivan Savenko
2013-01-20 22:49:34 +00:00
parent a96f03e947
commit 46eb0b3daf
13 changed files with 24 additions and 30 deletions

View File

@@ -1147,7 +1147,7 @@ template <typename Handler> void CPlayerInterface::serializeTempl( Handler &h, c
h & spellbookSettings;
//sleeping heroes
ui8 sleepingSize;
ui8 sleepingSize = 0; //fix for uninitialized warning
if (h.saving)
sleepingSize = sleepingHeroes.size();
h & sleepingSize;
@@ -1165,7 +1165,7 @@ template <typename Handler> void CPlayerInterface::serializeTempl( Handler &h, c
}
//hero list order
ui8 heroListSize;
ui8 heroListSize = 0; //fix for uninitialized warning
if (h.saving)
heroListSize = wanderingHeroes.size();
else