fix script error in keypad

directional-lights
Maikel de Vries 2016-10-02 08:03:14 +02:00
parent b0ff00439f
commit 48d98d708e
1 changed files with 2 additions and 0 deletions

View File

@ -332,6 +332,8 @@ public func UpdateMenuCode(string digit_pressed)
// Turns a string of digits into a string of digits and images.
private func CodeToDisplay(string code)
{
if (GetType(code) != C4V_String)
return "";
var display = "";
for (var index = 0; index < GetLength(code); index++)
{