Skip to content
Snippets Groups Projects
Commit c57593ea authored by fuzzy_bunny's avatar fuzzy_bunny
Browse files

pointer destr bug -- removed colors array deletion in Behaviours destructors

parent ce859999
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ void FearfulBehaviour::getRidOfInstance(void){
}
FearfulBehaviour::~FearfulBehaviour() {
delete[] &color;
// delete[] &color;
}
......
......@@ -35,7 +35,7 @@ GregariousBehaviour* GregariousBehaviour::getBehaviourInstance(){
}
GregariousBehaviour::~GregariousBehaviour() {
delete[] &color;
// delete[] &color;
}
......
......@@ -39,7 +39,7 @@ void KamikazeBehaviour::getRidOfInstance(void){
}
KamikazeBehaviour::~KamikazeBehaviour() {
delete[] &color;
// delete[] &color;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment