We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5113de commit ffd2ba7Copy full SHA for ffd2ba7
Server/mods/deathmatch/logic/CHandlingManager.cpp
@@ -103,12 +103,8 @@ const CHandlingEntry* CHandlingManager::GetOriginalHandlingData(std::uint32_t mo
103
// Get our Handling ID
104
const eHandlingTypes eHandling = GetHandlingID(model);
105
106
- const auto it = m_OriginalEntries.find(model);
107
- if (it == m_OriginalEntries.end())
108
- return nullptr;
109
-
110
// Return it
111
- return it->second.get();
+ return m_OriginalEntries[eHandling].get();
112
}
113
114
CHandlingEntry* CHandlingManager::GetModelHandlingData(std::uint32_t model) const noexcept
0 commit comments