Commit 11f8d7b8 authored by Simpy's avatar Simpy 🐹

only wipe the table if its populated

parent 50f82ee8
......@@ -23,7 +23,8 @@ E.ShortPrefixStyles = {
function E:BuildShortValues(decimalLength, prefixStyle)
if next(E.ShortPrefixValues) then wipe(E.ShortPrefixValues) end
E.ShortPrefixValues = E:CopyTable(E.ShortPrefixValues, E.ShortPrefixStyles[prefixStyle])
E.ShortValueDec = format("%%.%df", decimalLength or 1)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment