aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui/object.cpp4
-rw-r--r--gui/object.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/gui/object.cpp b/gui/object.cpp
index aaa5a1a4b3..537c127033 100644
--- a/gui/object.cpp
+++ b/gui/object.cpp
@@ -30,8 +30,8 @@
namespace GUI {
-GuiObject::GuiObject(const Common::String &name) : _firstWidget(0) {
- _name = name;
+GuiObject::GuiObject(const Common::String &name)
+ : _x(-1000), _y(-1000), _w(0), _h(0), _name(name), _firstWidget(0) {
reflowLayout();
}
diff --git a/gui/object.h b/gui/object.h
index 1c8bcdfdcc..fb5ff18290 100644
--- a/gui/object.h
+++ b/gui/object.h
@@ -62,7 +62,7 @@ class GuiObject : public CommandReceiver {
protected:
int16 _x, _y;
uint16 _w, _h;
- Common::String _name;
+ const Common::String _name;
Widget *_firstWidget;