Fix incorrect assignment instead of comparison in TutorialGuide

master
Nicolas Hake 2018-07-23 10:29:59 +02:00
parent 30aa6abb55
commit 8950db9cb4
1 changed files with 2 additions and 2 deletions

View File

@ -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;