CUVElement: Provide initial value for cv in GetValueUV()

The game executable itself sets this variable to an initial value of 1
prior to calling cycleFrames' GetValue() member function.
This commit is contained in:
Lioncash 2019-10-11 17:00:38 -04:00
parent 35fb0e4911
commit af7d8e9095
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ CUVEAnimTexture::CUVEAnimTexture(TToken<CTexture>&& tex, std::unique_ptr<CIntEle
}
void CUVEAnimTexture::GetValueUV(int frame, SUVElementSet& valOut) const {
int cv;
int cv = 1;
x28_cycleFrames->GetValue(frame, cv);
float cvf = float(cv) / float(x20_tiles);
cvf = float(frame) / cvf;