diff --git a/src/game/uo_files/CUOMobtypes.cpp b/src/game/uo_files/CUOMobtypes.cpp index 2b95222f0..2cf64a7ee 100644 --- a/src/game/uo_files/CUOMobtypes.cpp +++ b/src/game/uo_files/CUOMobtypes.cpp @@ -86,7 +86,10 @@ void CUOMobTypes::Load() mobTypesRow.m_flags = std::strtol(splitArray[2], NULL, 16); - _mobTypesEntries[animIndex] = mobTypesRow; + if (animIndex <= _mobTypesEntries.size()) //Safety check + { + _mobTypesEntries[animIndex] = mobTypesRow; + } } } csvMobTypes.Close();