1
This commit is contained in:
parent
5bafd6b0d5
commit
3850623f1c
@ -837,6 +837,9 @@ void RoomMgr::SendGetBattleData(int mode,
|
|||||||
auto result = (std::shared_ptr<std::vector<BattleDataContext>>*)param.sender.GetUserData();
|
auto result = (std::shared_ptr<std::vector<BattleDataContext>>*)param.sender.GetUserData();
|
||||||
auto cb = (std::function<
|
auto cb = (std::function<
|
||||||
void(std::vector<BattleDataContext>&)>*)param.param1.GetUserData();
|
void(std::vector<BattleDataContext>&)>*)param.param1.GetUserData();
|
||||||
|
for (auto& context : *result->get()) {
|
||||||
|
|
||||||
|
}
|
||||||
(*cb)(*result->get());
|
(*cb)(*result->get());
|
||||||
delete cb;
|
delete cb;
|
||||||
delete result;
|
delete result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user