more checks

develop
Petr Mrázek 2009-10-29 18:16:51 +00:00
parent 64f5f46177
commit f79076054d
1 changed files with 2 additions and 2 deletions

@ -682,10 +682,10 @@ bool DFHackAPIImpl::Attach()
}
// TODO: clean inited stuff here
bool DFHackAPIImpl::Detach()
{
p->detach();
if (!p->detach())
return false;
if(pm != NULL)
delete pm;
pm = NULL;