from retail

This commit is contained in:
NoM0Re
2025-01-09 17:17:53 +01:00
parent 55709443ae
commit aee89075c9
8 changed files with 67 additions and 45 deletions
+1 -1
View File
@@ -338,7 +338,7 @@ local barPrototype = {
local width = additionalBar.width or 0;
local offset = additionalBar.offset or 0;
if (width ~= 0) then
if (width ~= 0 and valueWidth ~= 0) then
if (forwardDirection) then
startProgress = self.value + offset / valueWidth;
endProgress = self.value + (width + offset) / valueWidth;