Skip to content

Commit

Permalink
Fix crash for streaming old states (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
baconpaul authored Dec 13, 2024
1 parent 3d3b0e2 commit 4d04c55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/LatticesProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ void LatticesProcessor::setStateInformation(const void *data, int sizeInBytes)
originalRefFreq = xmlState->getDoubleAttribute("freq");

maxDistance = xmlState->getIntAttribute("md");
if (maxDistance < 1)
maxDistance = 24;

int tx = xmlState->getIntAttribute("xp");
int ty = xmlState->getIntAttribute("yp");
Expand Down

0 comments on commit 4d04c55

Please sign in to comment.