Skip to content

Commit e448b9f

Browse files
committed
nil snap id
1 parent 65e925c commit e448b9f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

library/snapshot.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,9 @@ local snap = {}
109109

110110
---Allocates a new id for a snapshot item.
111111
---Make sure to free it if you no longer send the snap item.
112+
---Can return nil if no more ids are left.
112113
---Using `ddnetpp.snap.free_id(id)`
113-
---@return integer snap_item_id # the next free id that can be used for snapshot items
114+
---@return integer|nil snap_item_id # the next free id that can be used for snapshot items
114115
function snap.new_id() end
115116

116117
---Frees an snapshot item id that was allocated

0 commit comments

Comments
 (0)