fix error

This commit is contained in:
techbot 2023-05-17 01:04:08 +02:00
parent 8d794fa91b
commit c8283f046c

View File

@ -14,7 +14,7 @@ function MUTATOR:ReadArguments()
end
function MUTATOR:Update(val)
if not self.actual_model then return end
if not self.actual_model or not IsValid(self.Entity) then return end
if self.Entity:GetModel():lower() ~= self.actual_model:lower() then
self.Entity:SetModel(self.actual_model)