From 85941484969c70fa3ba6e3de80f4f993d5c5568c Mon Sep 17 00:00:00 2001 From: cavedude00 Date: Wed, 12 Nov 2014 11:29:10 -0800 Subject: [PATCH] Fixed npc_types_tint not being loaded properly. --- zone/zonedb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/zonedb.cpp b/zone/zonedb.cpp index e18a208ae..a1cf4ecfb 100644 --- a/zone/zonedb.cpp +++ b/zone/zonedb.cpp @@ -1892,7 +1892,7 @@ const NPCType* ZoneDatabase::GetNPCType (uint32 id) { if (!armortint_results.Success() || armortint_results.RowCount() == 0) armor_tint_id = 0; else { - auto armorTint_row = results.begin(); + auto armorTint_row = armortint_results.begin(); for (int index = EmuConstants::MATERIAL_BEGIN; index <= EmuConstants::MATERIAL_END; index++) { tmpNPCType->armor_tint[index] = atoi(armorTint_row[index * 3]) << 16;