Game/worldPosToZonePos

* catch DB errors resulting in wrong return type
This commit is contained in:
Sarjuuk 2020-08-30 17:33:27 +02:00
parent 93948a2ec5
commit 366a0f2040

View file

@ -264,6 +264,12 @@ class Game
if (!$points) // retry: TC counts pre-instance subareas as instance-maps .. which have no map file
$points = DB::Aowow()->select($query, $posX, $posX, $posY, $posY, $posX, $posX, $posY, $posY, 0, $mapId, 0, 0, DBSIMPLE_SKIP);
if (!is_array($points))
{
trigger_error('Game::worldPosToZonePos - dbc query failed', E_USER_ERROR);
return [];
}
return $points;
}
}