Skip to content

Commit

Permalink
Fixed a crash when callRemote returns an error after it's resource ha…
Browse files Browse the repository at this point in the history
…s stopped.
  • Loading branch information
ccw808 committed Apr 28, 2010
1 parent 8b51d10 commit 8cf9c41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MTA10_Server/mods/deathmatch/logic/CRemoteCalls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,9 @@ void CRemoteCall::ProgressCallback(double sizeJustDownloaded, double totalDownlo
arguments.PushString("ERROR");
arguments.PushNumber(error);
arguments.Call ( call->m_VM, call->m_iFunction);

g_pGame->GetRemoteCalls()->Remove(call); // delete ourselves
}
g_pGame->GetRemoteCalls()->Remove(call); // delete ourselves
}
}

0 comments on commit 8cf9c41

Please sign in to comment.