Added sanity fixes for testing

This commit is contained in:
Xackery
2022-09-02 10:49:18 -07:00
parent ee54a7eb5f
commit e0f9d9a8db
6 changed files with 26 additions and 3 deletions
+3
View File
@@ -234,6 +234,9 @@ bool NpcScaleManager::LoadScaleData()
*/
NpcScaleManager::global_npc_scale NpcScaleManager::GetGlobalScaleDataForTypeLevel(int8 npc_type, int npc_level)
{
if (npc_type < 1) {
return {};
}
auto iter = npc_global_base_scaling_data.find(std::make_pair(npc_type, npc_level));
if (iter != npc_global_base_scaling_data.end()) {
return iter->second;