summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-07-08 19:42:39 +0000
committerrubidium <rubidium@openttd.org>2013-07-08 19:42:39 +0000
commit635ec0dd9f23c8ee55361e2d9ef34bc956371046 (patch)
tree4782fa81ee207c7bec38b2266901ea140859764f /src/script
parent84b0b288b339c35b801a51aff109880bf99c3717 (diff)
downloadopenttd-635ec0dd9f23c8ee55361e2d9ef34bc956371046.tar.xz
(svn r25577) -Fix-ish [FS#5638] (r20562): [Script] Documentation implied that XXList::AddItem has a default for value if it isn't filled in.
Diffstat (limited to 'src/script')
-rw-r--r--src/script/api/script_list.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/script/api/script_list.hpp b/src/script/api/script_list.hpp
index 88b0d6f79..fc3b26b08 100644
--- a/src/script/api/script_list.hpp
+++ b/src/script/api/script_list.hpp
@@ -54,13 +54,16 @@ public:
ScriptList();
~ScriptList();
+#ifdef DOXYGEN_API
/**
* Add a single item to the list.
* @param item the item to add. Should be unique, otherwise it is ignored.
* @param value the value to assign.
- * @note the value is set to 0 by default.
*/
+ void AddItem(int32 item, int32 value);
+#else
void AddItem(int32 item, int32 value = 0);
+#endif
/**
* Remove a single item from the list.