Merge pull request #5961 from ZappoMan/fixScriptStopAgentCrash

possible fix for crashing agents acting like avatars
This commit is contained in:
Ryan Huffman 2015-09-30 16:24:41 -07:00
commit 23b057cbb2

View file

@ -364,6 +364,7 @@ void Agent::processAgentAvatarAndAudio(float deltaTime) {
}
void Agent::aboutToFinish() {
setIsAvatar(false);// will stop timers for sending billboards and identity packets
if (_scriptEngine) {
_scriptEngine->stop();
}