Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/frontend/StarMainInterface.hpp
diff options
context:
space:
mode:
authorKai Blaschke <kai.blaschke@kb-dev.net>2024-02-19 23:29:39 +0100
committerKai Blaschke <kai.blaschke@kb-dev.net>2024-02-19 23:44:59 +0100
commitd0099a6d790b66f21e4e266e569d64fb82fb0a81 (patch)
tree69174faa3f95079e5e33e00970d161c9b3f02048 /source/frontend/StarMainInterface.hpp
parent42fc1d6714036a2814f1e6ab293eaa0009320ef4 (diff)
Fixed some uninitialized members
May have caused undefined behavior in few cases, as most of the fixed members were used before being initialized.
Diffstat (limited to 'source/frontend/StarMainInterface.hpp')
-rw-r--r--source/frontend/StarMainInterface.hpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/source/frontend/StarMainInterface.hpp b/source/frontend/StarMainInterface.hpp
index adba4e6..91a63ab 100644
--- a/source/frontend/StarMainInterface.hpp
+++ b/source/frontend/StarMainInterface.hpp
@@ -154,11 +154,11 @@ private:
void displayScriptPane(ScriptPanePtr& scriptPane, EntityId sourceEntity);
- GuiContext* m_guiContext;
+ GuiContext* m_guiContext{nullptr};
MainInterfaceConfigConstPtr m_config;
InterfaceCursor m_cursor;
- RunningState m_state;
+ RunningState m_state{Running};
UniverseClientPtr m_client;
WorldPainterPtr m_worldPainter;
@@ -192,7 +192,7 @@ private:
WirePanePtr m_wireInterface;
ActionBarPtr m_actionBar;
- Vec2I m_cursorScreenPos;
+ Vec2I m_cursorScreenPos{};
ItemSlotWidgetPtr m_cursorItem;
Maybe<String> m_cursorTooltip;
@@ -201,29 +201,29 @@ private:
GameTimer m_debugSpatialClearTimer;
GameTimer m_debugMapClearTimer;
- RectF m_debugTextRect;
+ RectF m_debugTextRect{RectF::null()};
NameplatePainterPtr m_nameplatePainter;
QuestIndicatorPainterPtr m_questIndicatorPainter;
ChatBubbleManagerPtr m_chatBubbleManager;
- bool m_disableHud;
+ bool m_disableHud{false};
String m_lastCommand;
LinkedList<GuiMessagePtr> m_messages;
HashMap<ItemDescriptor, std::pair<size_t, GuiMessagePtr>> m_itemDropMessages;
- unsigned m_messageOverflow;
+ unsigned m_messageOverflow{};
GuiMessagePtr m_overflowMessage;
List<pair<String, RpcPromiseKeeper<P2PJoinRequestReply>>> m_queuedJoinRequests;
- EntityId m_lastMouseoverTarget;
+ EntityId m_lastMouseoverTarget{NullEntityId};
GameTimer m_stickyTargetingTimer;
- int m_portraitScale;
+ int m_portraitScale{};
- EntityId m_specialDamageBarTarget;
- float m_specialDamageBarValue;
+ EntityId m_specialDamageBarTarget{NullEntityId};
+ float m_specialDamageBarValue{};
ContainerInteractorPtr m_containerInteractor;
};