mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
Use a different way to determine zone loaded
This commit is contained in:
parent
c23f0eaefb
commit
b8c41c9e9a
@ -724,7 +724,7 @@ void callGetOpcodeList(Json::Value &response)
|
|||||||
{
|
{
|
||||||
for (auto i = 0; i < _maxEmuOpcode; ++i) {
|
for (auto i = 0; i < _maxEmuOpcode; ++i) {
|
||||||
Json::Value row = OpcodeNames[i];
|
Json::Value row = OpcodeNames[i];
|
||||||
|
|
||||||
response.append(row);
|
response.append(row);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -733,7 +733,7 @@ void EQEmuApiZoneDataService::get(Json::Value &response, const std::vector<std::
|
|||||||
{
|
{
|
||||||
std::string method = args[0];
|
std::string method = args[0];
|
||||||
|
|
||||||
if (!zone->IsLoaded()) {
|
if (zone->GetZoneID() > 0) {
|
||||||
response["error"] = "Zone must be loaded to invoke calls";
|
response["error"] = "Zone must be loaded to invoke calls";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user