mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-18 03:36:22 +02:00
Fix bug in tutorialZone using self instead of this
This commit is contained in:
parent
e6d2900bec
commit
7227e5770a
1 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue