mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 12:18:27 +00:00
Added sanity fixes for testing
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user