From 8950db9cb4aac564db980b0738380843ecc7f99d Mon Sep 17 00:00:00 2001 From: Nicolas Hake Date: Mon, 23 Jul 2018 10:29:59 +0200 Subject: [PATCH] Fix incorrect assignment instead of comparison in TutorialGuide --- planet/Tutorials.ocf/Tutorial.ocd/TutorialGuide.ocd/Script.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/planet/Tutorials.ocf/Tutorial.ocd/TutorialGuide.ocd/Script.c b/planet/Tutorials.ocf/Tutorial.ocd/TutorialGuide.ocd/Script.c index 5c213fe93..6cad718fa 100644 --- a/planet/Tutorials.ocf/Tutorial.ocd/TutorialGuide.ocd/Script.c +++ b/planet/Tutorials.ocf/Tutorial.ocd/TutorialGuide.ocd/Script.c @@ -60,7 +60,7 @@ public func ShowGuideMessage(int show_index) // Hides the guide and its menu to the player. public func HideGuide() { - if (this.Visibility = VIS_Owner) + if (this.Visibility == VIS_Owner) { // Change visibility and do script callback. this.Visibility = VIS_None; @@ -72,7 +72,7 @@ public func HideGuide() // Shows the guide and its menu to the player, if it was hidden before. public func ShowGuide() { - if (this.Visibility = VIS_None) + if (this.Visibility == VIS_None) { // Change visibility and do script callback. this.Visibility = VIS_Owner;