OSDN Git Service

Fix constructor of Square class.
authorDeskull <deskull@users.sourceforge.jp>
Tue, 11 Mar 2014 11:48:58 +0000 (20:48 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Tue, 11 Mar 2014 11:48:58 +0000 (20:48 +0900)
Deeangband/Square.cpp

index f0afa20..ae11208 100644 (file)
 
 Square::Square(Floor *floorPtr)
 {
+       Square();
        this->floorPtr = floorPtr;
-       featureID = 0;
 }
 
 Square::Square()
 {
+       this->floorPtr = NULL;
+       this->featureID = 0;
+       this->hitPoint = this->maxPoint = 100;
 }
 
 Square::~Square()