Formspec: No spec ID for static text labels

Fixes #9634
This commit is contained in:
SmallJoker 2020-04-11 15:31:02 +02:00
parent fbf74dc524
commit 01b3f26c7b

@ -1424,7 +1424,7 @@ void GUIFormSpecMenu::createTextField(parserData *data, FieldSpec &spec,
if (!is_editable && !is_multiline) {
// spec field id to 0, this stops submit searching for a value that isn't there
gui::StaticText::add(Environment, spec.flabel.c_str(), rect, false, true,
this, spec.fid);
this, 0);
return;
}