summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-11-27 12:21:08 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-11-27 22:48:30 +0100
commit8b9e6a0abb6291ce7b37b44375151e421bca0de4 (patch)
tree278b1397d0d11bb36f63c7ce5605301d090a7d64
parentc681f5749480524e265c7da390c95f2c8046ab00 (diff)
Force all fields of Tile to be initialized.
-rw-r--r--common/tile.cpp4
-rw-r--r--common/tile.h5
2 files changed, 1 insertions, 8 deletions
diff --git a/common/tile.cpp b/common/tile.cpp
index 0fb2230..8ade606 100644
--- a/common/tile.cpp
+++ b/common/tile.cpp
@@ -2,10 +2,6 @@
#include <algorithm>
-Tile::Tile() {
-
-}
-
Tile::Tile(Tile::Type t, bool re, bool ro) : type(t), red(re), rotated(ro) {
}
diff --git a/common/tile.h b/common/tile.h
index 748d80b..461e145 100644
--- a/common/tile.h
+++ b/common/tile.h
@@ -61,11 +61,8 @@ class Tile {
bool rotated;
bool invisible;
- //! Default constructor.
- Tile();
-
//! Construct tile by type.
- Tile(Type t, bool re = false, bool ro = false);
+ Tile(Type t = Back, bool re = false, bool ro = false);
//! Construct tile by set and number.
Tile(Set s, int num, bool re = false, bool ro = false);