diff options
author | frosch <frosch@openttd.org> | 2010-01-16 14:22:19 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-01-16 14:22:19 +0000 |
commit | 6465f02fba984e169c904cccf89fd1417ee2f45b (patch) | |
tree | 1708196e69bfc12f14fe47743e26be39c5c1ae65 /src/pathfinder/yapf/yapf_costcache.hpp | |
parent | 84ece021fde4850b4755b81bb6886ffced6b7020 (diff) | |
download | openttd-6465f02fba984e169c904cccf89fd1417ee2f45b.tar.xz |
(svn r18826) -Codechange: Unifiy return value of (SmallArray|FixedSizeArray)::(Append|AppendC) with other containers. (skidd13)
Diffstat (limited to 'src/pathfinder/yapf/yapf_costcache.hpp')
-rw-r--r-- | src/pathfinder/yapf/yapf_costcache.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pathfinder/yapf/yapf_costcache.hpp b/src/pathfinder/yapf/yapf_costcache.hpp index 13d30c119..e25faa952 100644 --- a/src/pathfinder/yapf/yapf_costcache.hpp +++ b/src/pathfinder/yapf/yapf_costcache.hpp @@ -70,7 +70,7 @@ public: FORCEINLINE bool PfNodeCacheFetch(Node& n) { CacheKey key(n.GetKey()); - Yapf().ConnectNodeToCachedData(n, *new (&m_local_cache.Append()) CachedData(key)); + Yapf().ConnectNodeToCachedData(n, *new (m_local_cache.Append()) CachedData(key)); return false; } @@ -133,7 +133,7 @@ struct CSegmentCostCacheT Tsegment *item = m_map.Find(key); if (item == NULL) { *found = false; - item = new (&m_heap.Append()) Tsegment(key); + item = new (m_heap.Append()) Tsegment(key); m_map.Push(*item); } else { *found = true; |