diff options
author | smatz <smatz@openttd.org> | 2009-10-04 17:10:57 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-10-04 17:10:57 +0000 |
commit | 32cbe57178129d371752e29e857fa454a046f7c3 (patch) | |
tree | c1dd06f2f7e052ee5bbbe6e388d6546da67648a3 /src/ai/api/ai_abstractlist.cpp | |
parent | 1666f7a1a926eec76a5ae12d54debf4f13bca269 (diff) | |
download | openttd-32cbe57178129d371752e29e857fa454a046f7c3.tar.xz |
(svn r17692) -Codechange: minor coding style fixes
Diffstat (limited to 'src/ai/api/ai_abstractlist.cpp')
-rw-r--r-- | src/ai/api/ai_abstractlist.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ai/api/ai_abstractlist.cpp b/src/ai/api/ai_abstractlist.cpp index 0a2b3e224..6647b725e 100644 --- a/src/ai/api/ai_abstractlist.cpp +++ b/src/ai/api/ai_abstractlist.cpp @@ -178,7 +178,8 @@ public: return item_current; } - void End() { + void End() + { this->bucket_list = NULL; this->has_no_more_items = true; this->item_next = 0; @@ -286,7 +287,8 @@ public: return item_current; } - void Remove(int item) { + void Remove(int item) + { if (!this->HasNext()) return; /* If we remove the 'next' item, skip to the next */ |