Fix comparison operator for char

This commit is contained in:
smallmodel committed 2024-11-17 21:25:54 +01:00
1 parent aeb8aa8e55
commit 7b58fbec8a
1 file changed
+2 -2
+2 -2
View File
@@ -2293,9 +2293,9 @@ void ScriptVariable::greaterthan(ScriptVariable& variable)
m_data.intValue = m_data.floatValue > variable.m_data.intValue;
break;
case VARIABLE_CHAR + VARIABLE_CHAR *VARIABLE_MAX: // ( char ) >= ( char )
case VARIABLE_CHAR + VARIABLE_CHAR *VARIABLE_MAX: // ( char ) > ( char )
type = VARIABLE_INTEGER;
m_data.intValue = m_data.charValue >= variable.m_data.charValue;
m_data.intValue = m_data.charValue > variable.m_data.charValue;
break;
}
}