[Orxonox-commit 1071] r5792 - code/branches/core5/src/orxonox
landauf at orxonox.net
landauf at orxonox.net
Sat Sep 26 02:06:00 CEST 2009
Author: landauf
Date: 2009-09-26 02:06:00 +0200 (Sat, 26 Sep 2009)
New Revision: 5792
Modified:
code/branches/core5/src/orxonox/Level.cc
Log:
fixed a bug in Level
Modified: code/branches/core5/src/orxonox/Level.cc
===================================================================
--- code/branches/core5/src/orxonox/Level.cc 2009-09-26 00:05:30 UTC (rev 5791)
+++ code/branches/core5/src/orxonox/Level.cc 2009-09-26 00:06:00 UTC (rev 5792)
@@ -52,6 +52,8 @@
this->registerVariables();
this->xmlfilename_ = this->getFilename();
+ this->xmlfile_ = 0;
+ this->ambientsound_ = 0;
}
Level::~Level()
@@ -64,7 +66,7 @@
if (this->xmlfile_)
Loader::unload(this->xmlfile_);
- if(this->ambientsound_ != NULL)
+ if (this->ambientsound_ != NULL)
delete this->ambientsound_;
}
}
More information about the Orxonox-commit
mailing list