private WoWMap(string name, bool mpq = false) { init(); MapDbcRecord tempMapDbcRecord = new MapDbcRecord(); bool found = false; for (int i = 0; i < mapDB2.RecordsCount - 1; i++) { tempMapDbcRecord = _cachedRecords[i]; string temp = (mpq ? tempMapDbcRecord.MapMPQName() : tempMapDbcRecord.MapName()); if (temp == name) { found = true; break; } } _rMapDBCRecord0 = found ? tempMapDbcRecord : new MapDbcRecord(); }