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