Fix empty button error when the parameter is empty, by adding a space.

Fixes #60.
This commit is contained in:
Sei Lisa 2017-12-11 18:33:19 +01:00 committed by Sei-Lisa
parent 5c862e4962
commit 8e45b14be3

View file

@ -1328,6 +1328,9 @@ default
FIRST_FEMALE_ANIMATION_SEQUENCE = part1;
}
}
// Don't generate empty buttons (issue #60)
if (part0 == "B:")
part0 = "B: ";
if (command == "BUTTON" && part1 == "")
{
part1 = "90200"; // default to rez prop