Skip to content

Commit 9c195cf

Browse files
committed
Add a couple of validations
1 parent e1914f5 commit 9c195cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

amx/client/arrowmarkers.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ local function setMarkerZ(marker, angle)
99
return
1010
end
1111
local baseX, baseY, baseZ
12-
if info.attachedTo then
12+
if isElement(info.attachedTo) then
1313
baseX, baseY, baseZ = getElementPosition(info.attachedTo)
1414
baseX, baseY, baseZ = baseX + info[1], baseY + info[2], baseZ + info[3]
1515
else
@@ -42,7 +42,7 @@ addEventHandler('onClientElementStreamOut', root,
4242
return
4343
end
4444
local info = streamedMarkers[source]
45-
if info.attachedTo then
45+
if isElement(info.attachedTo) then
4646
attachElements(source, info.attachedTo, unpack(info))
4747
else
4848
setElementPosition(source, unpack(info))

0 commit comments

Comments
 (0)