Changeset - r21604:e1869da1486d
[Not reviewed]
master
0 1 0
rubidium - 10 years ago 2014-08-16 10:05:57
rubidium@openttd.org
(svn r26734) -Fix-ish: make clear the AI/GS List's Begin and Next return the item, not the value
1 file changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/script/api/script_list.hpp
Show inline comments
 
@@ -84,15 +84,15 @@ public:
 
	bool HasItem(int32 item);
 

	
 
	/**
 
	 * Go to the beginning of the list.
 
	 * @return the item value of the first item.
 
	 * Go to the beginning of the list and return the item. To get the value use list.GetValue(list.Begin()).
 
	 * @return the first item.
 
	 * @note returns 0 if beyond end-of-list. Use IsEnd() to check for end-of-list.
 
	 */
 
	int32 Begin();
 

	
 
	/**
 
	 * Go to the next item in the list.
 
	 * @return the item value of the next item.
 
	 * Go to the next item in the list and return the item. To get the value use list.GetValue(list.Next()).
 
	 * @return the next item.
 
	 * @note returns 0 if beyond end-of-list. Use IsEnd() to check for end-of-list.
 
	 */
 
	int32 Next();
0 comments (0 inline, 0 general)