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:
@@ -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
|
||||
|
Reference in New Issue
Block a user