Game/worldPosToZonePos
* catch DB errors resulting in wrong return type
This commit is contained in:
parent
93948a2ec5
commit
366a0f2040
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue