From: drumsetmonkey Date: Thu, 3 Dec 2015 12:46:23 +0000 (-0500) Subject: Added holding vs press key action X-Git-Url: https://code.bitgloo.com/?a=commitdiff_plain;h=bf91141782766f3648b62c6d96528fddb9ae7447;p=clyne%2Fgamedev.git Added holding vs press key action --- bf91141782766f3648b62c6d96528fddb9ae7447 diff --cc src/entities.cpp index ee5a542,f0e7d16..7f78637 --- a/src/entities.cpp +++ b/src/entities.cpp @@@ -120,10 -120,13 +120,12 @@@ Structures::Structures(){ //sets the st tex = new Texturec(1,"assets/house1.png"); inWorld = NULL; + name = NULL; } Structures::~Structures(){ - //delete inv; delete tex; - delete[] name; + if(name) + delete[] name; } Mob::Mob(int sub){ @@@ -175,7 -178,8 +177,6 @@@ Object::Object(ITEM_ID id, bool qo, con } Object::~Object(){ delete[] pickupDialog; -- - //delete inv; delete tex; delete[] name; }