Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

Commit

Permalink
Fix Increment()
Browse files Browse the repository at this point in the history
increment fix
  • Loading branch information
ThoughtSpinnr authored May 1, 2019
1 parent 0998b9b commit 1153ffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ServerStorage/Aero/Modules/Data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ end

function Data:Increment(key, increment)
assert(not self._destroyed, "Data already destroyed")
local value = self:Get(key, 0)
local success, value = self:Get(key, 0)
assert(type(value) == "number", "Cannot increment a non-number value")
assert(type(increment) == "number", "Increment must be a number")
value = (value + increment)
Expand Down

0 comments on commit 1153ffc

Please sign in to comment.