From 8b9e6a0abb6291ce7b37b44375151e421bca0de4 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sat, 27 Nov 2010 12:21:08 +0100 Subject: Force all fields of Tile to be initialized. --- common/tile.cpp | 4 ---- common/tile.h | 5 +---- 2 files changed, 1 insertion(+), 8 deletions(-) (limited to 'common') 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 -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); -- cgit v1.2.3