Skip to content

Commit

Permalink
Fix coverity #29604
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Feb 27, 2015
1 parent 16821f2 commit 4d73312
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/supertux/sector.cpp
Expand Up @@ -115,8 +115,15 @@ Sector::Sector(Level* parent) :
Sector::~Sector()
{
using namespace scripting;
try
{
deactivate();
}
catch(const std::exception& err)
{
log_warning << err.what() << std::endl;
}

deactivate();

for(auto i = scripts.begin(); i != scripts.end(); ++i) {
HSQOBJECT& object = *i;
Expand Down

0 comments on commit 4d73312

Please sign in to comment.