Skip to content

Commit

Permalink
Fix for corpse.def ( mul anims read by fstream refactoring fallout )
Browse files Browse the repository at this point in the history
  • Loading branch information
val-andrushko committed Apr 7, 2018
1 parent d64f293 commit c202c82
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions OrionUO/Managers/AnimationManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -970,9 +970,6 @@ void CAnimationManager::InitIndexReplaces(puint verdata)
direction.BaseSize = direction.PatchedSize;
direction.Address = direction.BaseAddress;
direction.Size = direction.BaseSize;
direction.PatchedAddress = 0;
direction.PatchedSize = 0;
direction.FileIndex = 0;
}
}
}
Expand Down Expand Up @@ -3170,9 +3167,6 @@ void CAnimationManager::ReadFramesPixelData(CTextureAnimationDirection &directio
puchar dataStart = m_Ptr;

uint frameCount = ReadUInt32LE();
//safety check if reading goes wrong
if (frameCount > 100) return;

direction.FrameCount = frameCount;

puint frameOffset = (puint)m_Ptr;
Expand Down

0 comments on commit c202c82

Please sign in to comment.