Changeset - r20549:f96b9e5c593a
[Not reviewed]
master
0 1 0
rubidium - 11 years ago 2013-07-08 19:42:39
rubidium@openttd.org
(svn r25577) -Fix-ish [FS#5638] (r20562): [Script] Documentation implied that XXList::AddItem has a default for value if it isn't filled in.
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/script/api/script_list.hpp
Show inline comments
 
@@ -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.
0 comments (0 inline, 0 general)