mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Fix potentially uninintialized variables
This commit is contained in:
@@ -155,12 +155,12 @@ SelectionTab::SelectionTab(ESelectionScreen Type)
|
|||||||
OBJ_CONSTRUCTION;
|
OBJ_CONSTRUCTION;
|
||||||
|
|
||||||
generalSortingBy = getSortBySelectionScreen(tabType);
|
generalSortingBy = getSortBySelectionScreen(tabType);
|
||||||
|
sortingBy = _format;
|
||||||
|
|
||||||
bool enableUiEnhancements = settings["general"]["enableUiEnhancements"].Bool();
|
bool enableUiEnhancements = settings["general"]["enableUiEnhancements"].Bool();
|
||||||
|
|
||||||
if(tabType != ESelectionScreen::campaignList)
|
if(tabType != ESelectionScreen::campaignList)
|
||||||
{
|
{
|
||||||
sortingBy = _format;
|
|
||||||
background = std::make_shared<CPicture>(ImagePath::builtin("SCSELBCK.bmp"), 0, 6);
|
background = std::make_shared<CPicture>(ImagePath::builtin("SCSELBCK.bmp"), 0, 6);
|
||||||
pos = background->pos;
|
pos = background->pos;
|
||||||
inputName = std::make_shared<CTextInput>(inputNameRect, Point(-32, -25), ImagePath::builtin("GSSTRIP.bmp"), 0);
|
inputName = std::make_shared<CTextInput>(inputNameRect, Point(-32, -25), ImagePath::builtin("GSSTRIP.bmp"), 0);
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ using TTeleportExitsList = std::vector<std::pair<ObjectInstanceID, int3>>;
|
|||||||
class DLL_LINKAGE CBattleGameInterface : public IBattleEventsReceiver
|
class DLL_LINKAGE CBattleGameInterface : public IBattleEventsReceiver
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
bool human;
|
bool human = false;
|
||||||
PlayerColor playerID;
|
PlayerColor playerID;
|
||||||
std::string dllName;
|
std::string dllName;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user