summaryrefslogtreecommitdiff
path: root/src/core/alloc_func.hpp
diff options
context:
space:
mode:
authorYexo <yexo@openttd.org>2009-01-29 02:42:36 +0000
committerYexo <yexo@openttd.org>2009-01-29 02:42:36 +0000
commit0e42a7bac73bb55f8a740ccc1aef388677ad28e8 (patch)
treefb59c7c89e4c38389e254a1ef30bddf8833975e1 /src/core/alloc_func.hpp
parent3671ed9e4f4b773cd03bfe7a4544bf78e61d1604 (diff)
downloadopenttd-0e42a7bac73bb55f8a740ccc1aef388677ad28e8.tar.xz
(svn r15291) -Cleanup: Move the station list widgets to their class from station_gui.h
-Fix: comment for ReallocT was wrong, the memory is not zeroed.
Diffstat (limited to 'src/core/alloc_func.hpp')
-rw-r--r--src/core/alloc_func.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/alloc_func.hpp b/src/core/alloc_func.hpp
index f1e0f7ba8..a5a730771 100644
--- a/src/core/alloc_func.hpp
+++ b/src/core/alloc_func.hpp
@@ -69,7 +69,7 @@ static FORCEINLINE T *CallocT(size_t num_elements)
* elements of the given type. It also explicitly casts it to the requested
* type. It extends/shrinks the memory allocation given in t_ptr.
* @note throws an error when there is no memory anymore.
- * @note the memory contains all zero values.
+ * @note the pointer to the data may change, but the data will remain valid.
* @param T the type of the variable(s) to allocation.
* @param t_ptr the previous allocation to extend/shrink.
* @param num_elements the number of elements to allocate of the given type.