Skip to content

Commit

Permalink
Fix crash when reloading/repairing unit from WindowStorage.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarod42 committed Mar 25, 2024
1 parent bb14069 commit 592f2d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ cWindowStorage::cWindowStorage (const cUnit& unit_, std::shared_ptr<const cTurnT
{
metalValue = building->subBase->getResourcesStored().metal;

signalConnectionManager.connect (building->subBase->metalChanged, [&]() {
signalConnectionManager.connect (building->subBase->metalChanged, [=]() {
metalBar->setValue (building->subBase->getResourcesStored().metal);
});
}
Expand Down

0 comments on commit 592f2d7

Please sign in to comment.