handle incorrect point_pos arg

This commit is contained in:
whosit 2021-05-28 10:05:49 +03:00
parent f521c193dc
commit 75223aa448

View File

@ -187,6 +187,7 @@ function WaypointHUD:new(player, point_pos,
point_icon, point_icon_scale, point_color,
size, alignment, arrow_icon_format, arrow_icon_color, quad_steps,
do_auto_update)
point_pos = point_pos or {x=0, y=0, z=0}
local w = {
point_pos = point_pos,
do_auto_update = do_auto_update,