Commit f280f11
authored
Fix AI Goal Display Strings (#4451)
* Fix AI Goal Display Strings
Okay so previously, if a target goal was not valid the code was
`strcpy(outbuf, XSTR("no orders", 495)); `
but then it was changed to
`outbuf += XSTR("no orders", 495);`
So it would instead append the "no orders" instead of properly replace the whole string. Looks just like a copy and paster oversight, since all the other text appends the name of the target with the order.
This PR correctly replaces, rather than appends that text. Fixes #4345
* appease clang
* use more simple =1 parent e7b73da commit f280f11
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15843 | 15843 | | |
15844 | 15844 | | |
15845 | 15845 | | |
15846 | | - | |
| 15846 | + | |
15847 | 15847 | | |
15848 | 15848 | | |
15849 | 15849 | | |
| |||
15852 | 15852 | | |
15853 | 15853 | | |
15854 | 15854 | | |
15855 | | - | |
| 15855 | + | |
15856 | 15856 | | |
15857 | 15857 | | |
15858 | 15858 | | |
| |||
15868 | 15868 | | |
15869 | 15869 | | |
15870 | 15870 | | |
15871 | | - | |
| 15871 | + | |
15872 | 15872 | | |
15873 | 15873 | | |
15874 | 15874 | | |
| |||
15879 | 15879 | | |
15880 | 15880 | | |
15881 | 15881 | | |
15882 | | - | |
| 15882 | + | |
15883 | 15883 | | |
15884 | 15884 | | |
15885 | 15885 | | |
| |||
0 commit comments