Closed CactusPuppy closed 3 years ago
The text output of a format string such as "{0} - {1} - {2}" will not include later arguments if the argument and all later arguments are Null. For example:
rule("make hud text") { event { Ongoing - Global; } actions { Create HUD Text(All Players(All Teams), String("{0} - {1} - {2}", String("Zone")), Null, Null, Left, 0, Color(White), Color(White), Color(White), Visible To and String, Default Visibility); } }
is valid in Overwatch, but the decompiler will go out of bounds and trigger an exception.
The text output of a format string such as "{0} - {1} - {2}" will not include later arguments if the argument and all later arguments are Null. For example:
is valid in Overwatch, but the decompiler will go out of bounds and trigger an exception.![image](https://user-images.githubusercontent.com/10406383/103263390-9d4fbe80-495c-11eb-8ad4-dfeb841bdab4.png)