mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-30 09:59:10 +00:00
(svn r7147) -CodeChange: Don't use references if they can refer to NULL (Tron)
This commit is contained in:
@@ -106,7 +106,7 @@ struct CSegmentCostCacheT
|
||||
|
||||
FORCEINLINE Tsegment& Get(Key& key, bool *found)
|
||||
{
|
||||
Tsegment* item = &m_map.Find(key);
|
||||
Tsegment* item = m_map.Find(key);
|
||||
if (item == NULL) {
|
||||
*found = false;
|
||||
item = new (&m_heap.AddNC()) Tsegment(key);
|
||||
|
Reference in New Issue
Block a user