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