Skip to content

Commit a1ffdef

Browse files
committed
Fix m_idx in map use
1 parent 55676c8 commit a1ffdef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/xrEngine/SkeletonMotions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,14 @@ BOOL motions_value::load (LPCSTR N, IReader *data, vecBones* bones)
187187

188188
if (I->second != m_idx)
189189
{
190-
Msg("Invalid motion index: %s", mname);
190+
Msg("! Invalid motion index: %s", mname);
191191
}
192192

193193
u32 dwLen = MS->r_u32();
194194
for (u32 i=0; i<bones->size(); i++){
195195
u16 bone_id = rm_bones[i];
196196
R_ASSERT2(bone_id != BI_NONE, "Invalid remap index.");
197-
CMotion& M = m_motions[bones->at(bone_id)->name][I->second];
197+
CMotion& M = m_motions[bones->at(bone_id)->name][m_idx];
198198
M.set_count (dwLen);
199199
M.set_flags (MS->r_u8());
200200

0 commit comments

Comments
 (0)