3
0
Fork 0
mirror of https://thingvellir.net/git/overte synced 2025-03-27 23:52:03 +01:00

Fix bug in tutorialZone using self instead of this

This commit is contained in:
Ryan Huffman 2016-10-27 15:02:57 -07:00
parent e6d2900bec
commit 7227e5770a

View file

@ -105,7 +105,7 @@ if (!Function.prototype.bind) {
// If the start zone was exited, and the tutorial hasn't started, go ahead and
// re-enable the HUD/Overlays
if (!self.tutorialManager) {
if (!this.tutorialManager) {
Menu.setIsOptionChecked("Overlays", true);
MyAvatar.shouldRenderLocally = true;
setAwayEnabled(true);
@ -120,12 +120,13 @@ if (!Function.prototype.bind) {
print("TutorialZone | EXITED THE TUTORIAL AREA");
if (this.token) {
print("TutorialZone | Destroying token");
//HMD.requestHideHandControllers();
this.token.destroy();
this.token = null;
}
if (self.tutorialManager) {
self.tutorialManager.stopTutorial();
self.tutorialManager = null;
if (this.tutorialManager) {
this.tutorialManager.stopTutorial();
this.tutorialManager = null;
}
}
};