diff options
author | alberth <alberth@openttd.org> | 2010-08-29 13:34:08 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-08-29 13:34:08 +0000 |
commit | 68e2a07479f1aed8ad0a8fe2f72e7affcf0f9427 (patch) | |
tree | c04b14c103850fa6b854b1ef509603f3655117a4 /src/pathfinder/npf/queue.h | |
parent | ded2acf02ea8b480a683da6982ecda39de48912e (diff) | |
download | openttd-68e2a07479f1aed8ad0a8fe2f72e7affcf0f9427.tar.xz |
(svn r20680) -Codechange: Remove the now useless union and struct wrappers around the binary heap data.
Diffstat (limited to 'src/pathfinder/npf/queue.h')
-rw-r--r-- | src/pathfinder/npf/queue.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/pathfinder/npf/queue.h b/src/pathfinder/npf/queue.h index 31dac0c0a..b56f6b530 100644 --- a/src/pathfinder/npf/queue.h +++ b/src/pathfinder/npf/queue.h @@ -60,14 +60,10 @@ struct Queue { */ Queue_FreeProc *free; - union { - struct { - uint max_size; - uint size; - uint blocks; ///< The amount of blocks for which space is reserved in elements - BinaryHeapNode **elements; - } binaryheap; - } data; + uint max_size; + uint size; + uint blocks; ///< The amount of blocks for which space is reserved in elements + BinaryHeapNode **elements; }; |