From ecd44c584f56c871cab7c226e6de6b6d838dcad9 Mon Sep 17 00:00:00 2001 From: Christopher Date: Mon, 23 Jan 2017 15:53:37 +0000 Subject: [PATCH] Fixed cannot divide an integer by an integer using Set Variable #579 --- Assets/Fungus/Scripts/Commands/SetVariable.cs | 2 +- Assets/Fungus/Scripts/Editor/SetVariableEditor.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Fungus/Scripts/Commands/SetVariable.cs b/Assets/Fungus/Scripts/Commands/SetVariable.cs index 051ac006..9c551607 100644 --- a/Assets/Fungus/Scripts/Commands/SetVariable.cs +++ b/Assets/Fungus/Scripts/Commands/SetVariable.cs @@ -11,7 +11,7 @@ namespace Fungus public enum SetOperator { /// = operator. - Assign, // + Assign, /// =! operator. Negate, /// += operator. diff --git a/Assets/Fungus/Scripts/Editor/SetVariableEditor.cs b/Assets/Fungus/Scripts/Editor/SetVariableEditor.cs index e14936d0..8d200f6a 100644 --- a/Assets/Fungus/Scripts/Editor/SetVariableEditor.cs +++ b/Assets/Fungus/Scripts/Editor/SetVariableEditor.cs @@ -66,7 +66,7 @@ namespace Fungus.EditorUtils operatorsList.Add(new GUIContent("+=")); operatorsList.Add(new GUIContent("-=")); operatorsList.Add(new GUIContent("*=")); - operatorsList.Add(new GUIContent("/=")); + operatorsList.Add(new GUIContent("\\=")); } int selectedIndex = 0;