diff options
Diffstat (limited to 'src/entities.cpp')
-rw-r--r-- | src/entities.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/entities.cpp b/src/entities.cpp index 0c312e2..f4c020c 100644 --- a/src/entities.cpp +++ b/src/entities.cpp @@ -188,6 +188,7 @@ Player::Player() : Entity() Player::~Player() { delete inv; + delete &tex; } void Player::createFromXML(XMLElement *e, World *w=nullptr) @@ -716,7 +717,7 @@ COMMONAIFUNC: // handle give tags if ((oxml = exml->FirstChildElement("give"))) { do player->inv->addItem(oxml->Attribute("id"), oxml->UnsignedAttribute("count")); - while ((oxml = oxml->NextSiblingElement())); + while ((oxml = oxml->NextSiblingElement("give"))); } // handle take tags |