mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 15:24:30 +01:00
committed by
GitHub
parent
68b92ba7d6
commit
2ac5e070c1
@@ -552,12 +552,13 @@ private:
|
||||
nullLoc.SetNull();
|
||||
|
||||
PeepPickupAction pickupAction{ PeepPickupType::Pickup, staff->Id, nullLoc, NetworkGetCurrentPlayerId() };
|
||||
pickupAction.SetCallback([&staff](const GameAction* ga, const GameActions::Result* result) {
|
||||
pickupAction.SetCallback([staffId = staff->Id](const GameAction* ga, const GameActions::Result* result) {
|
||||
if (result->Error != GameActions::Status::Ok)
|
||||
return;
|
||||
|
||||
auto* staff2 = GetEntity<Staff>(staffId);
|
||||
auto intent = Intent(WindowClass::Peep);
|
||||
intent.PutExtra(INTENT_EXTRA_PEEP, staff);
|
||||
intent.PutExtra(INTENT_EXTRA_PEEP, staff2);
|
||||
auto* wind = ContextOpenIntent(&intent);
|
||||
if (wind != nullptr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user