summaryrefslogtreecommitdiff
path: root/src/pathfinder/npf/queue.h
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-08-29 13:34:08 +0000
committeralberth <alberth@openttd.org>2010-08-29 13:34:08 +0000
commit68e2a07479f1aed8ad0a8fe2f72e7affcf0f9427 (patch)
treec04b14c103850fa6b854b1ef509603f3655117a4 /src/pathfinder/npf/queue.h
parentded2acf02ea8b480a683da6982ecda39de48912e (diff)
downloadopenttd-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.h12
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;
};