mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Fix miscellaneous issues discovered by Sonar
This commit is contained in:
@@ -54,7 +54,7 @@ CPuzzleWindow::CPuzzleWindow(const int3 & GrailPos, double discoveredRatio)
|
||||
{
|
||||
const SPuzzleInfo & info = elem;
|
||||
|
||||
auto piece = std::make_shared<CPicture>(info.filename, info.x, info.y);
|
||||
auto piece = std::make_shared<CPicture>(info.filename, info.position.x, info.position.y);
|
||||
|
||||
//piece that will slowly disappear
|
||||
if(info.whenUncovered <= GameConstants::PUZZLE_MAP_PIECES * discoveredRatio)
|
||||
|
||||
Reference in New Issue
Block a user