Fix generating default values for StringName

Cases other than `&""` were not processed correctly

(cherry picked from commit 6cd6c8923a)
This commit is contained in:
A Thousand Ships
2024-06-13 16:57:23 +02:00
committed by David Snopek
parent f067a9bff0
commit 65058828a6

View File

@@ -2321,6 +2321,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