mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 18:40:29 +00:00
(svn r25577) -Fix-ish [FS#5638] (r20562): [Script] Documentation implied that XXList::AddItem has a default for value if it isn't filled in.
This commit is contained in:
parent
84b0b288b3
commit
635ec0dd9f
@ -54,13 +54,16 @@ public:
|
|||||||
ScriptList();
|
ScriptList();
|
||||||
~ScriptList();
|
~ScriptList();
|
||||||
|
|
||||||
|
#ifdef DOXYGEN_API
|
||||||
/**
|
/**
|
||||||
* Add a single item to the list.
|
* Add a single item to the list.
|
||||||
* @param item the item to add. Should be unique, otherwise it is ignored.
|
* @param item the item to add. Should be unique, otherwise it is ignored.
|
||||||
* @param value the value to assign.
|
* @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);
|
void AddItem(int32 item, int32 value = 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove a single item from the list.
|
* Remove a single item from the list.
|
||||||
|
Loading…
Reference in New Issue
Block a user