Skip to content

Commit

Permalink
misc: fix invalid LevelDMD buffer comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
jsm174 committed Feb 20, 2024
1 parent b3107ba commit 8b7c67a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DMD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ void DMD::LevelDMDThread()
memcpy(renderBuffer, m_updateBuffer[bufferPosition]->data, length);
for (LevelDMD* pLevelDMD : m_levelDMDs)
{
if (pLevelDMD->GetLength() == length * 3)
if (pLevelDMD->GetLength() == length)
pLevelDMD->Update(renderBuffer, m_updateBuffer[bufferPosition]->depth);
}
}
Expand Down

0 comments on commit 8b7c67a

Please sign in to comment.