Fix generating default values for `StringName`

Cases other than `&""` were not processed correctly
pull/1487/head
A Thousand Ships 2024-06-13 16:57:23 +02:00
parent c5986e666f
commit 6cd6c8923a
No known key found for this signature in database
GPG Key ID: 2033189A662F8BD7
1 changed files with 2 additions and 0 deletions

View File

@ -2569,6 +2569,8 @@ def correct_default_value(value, type_name):
return f"{type_name}()"
if value.startswith("Array["):
return f"{{}}"
if value.startswith("&"):
return value[1::]
return value