From 54603edcb9fb75925c22ae2b6302c07a824b7285 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sun, 27 Nov 2011 00:04:45 +0100 Subject: [PATCH] map::map: Use in-place constructor --- map.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/map.h b/map.h index 16f31c1..15ebe99 100644 --- a/map.h +++ b/map.h @@ -36,10 +36,8 @@ public: class tile **tiles; int w, h; - map(int w_, int h_) + map(int w_, int h_) : w(w_), h(h_) { - w = w_; - h = h_; tiles = new class tile * [w * h]; for (int y = 0; y < h; y++) {