mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 17:41:12 +02:00
fix possible crash in agent
This commit is contained in:
parent
054a3728de
commit
34dc8bdbcb
1 changed files with 7 additions and 3 deletions
|
@ -364,10 +364,14 @@ void Agent::processAgentAvatarAndAudio(float deltaTime) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Agent::aboutToFinish() {
|
void Agent::aboutToFinish() {
|
||||||
_scriptEngine->stop();
|
if (_scriptEngine) {
|
||||||
|
_scriptEngine->stop();
|
||||||
|
}
|
||||||
|
|
||||||
_pingTimer->stop();
|
if (_pingTimer) {
|
||||||
delete _pingTimer;
|
_pingTimer->stop();
|
||||||
|
delete _pingTimer;
|
||||||
|
}
|
||||||
|
|
||||||
// our entity tree is going to go away so tell that to the EntityScriptingInterface
|
// our entity tree is going to go away so tell that to the EntityScriptingInterface
|
||||||
DependencyManager::get<EntityScriptingInterface>()->setEntityTree(NULL);
|
DependencyManager::get<EntityScriptingInterface>()->setEntityTree(NULL);
|
||||||
|
|
Loading…
Reference in a new issue