Skip to content

Commit 6698813

Browse files
Store next loaded missile caliber on racks
Closes ACF-Team/ACF-3#325
1 parent 51c26a9 commit 6698813

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/entities/acf_rack/init.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ do -- Spawning and Updating --------------------
109109
Entity.ShortName = Rack.ID
110110
Entity.EntType = Rack.EntType
111111
Entity.RackData = Rack
112-
Entity.Caliber = Rack.Caliber
112+
Entity.Caliber = Rack.Caliber or 0
113113
Entity.MagSize = Rack.MagSize or 1
114114
Entity.ForcedIndex = Entity.ForcedIndex and math.max(Entity.ForcedIndex, Entity.MagSize)
115115
Entity.PointIndex = 1
@@ -833,6 +833,7 @@ do -- Misc -------------------------------------
833833
local Reload = IsValid(Missile) and Missile.ReloadTime or 1
834834

835835
self.BulletData = BulletData
836+
self.Caliber = BulletData.Caliber
836837
self.NextFire = Point.NextFire
837838
self.Jammed = Point.Disabled
838839

0 commit comments

Comments
 (0)