Commit 4c7fa043 authored by Inkhana's avatar Inkhana

Passing correct variable to AS:Kill

parent dd538d02
......@@ -125,7 +125,7 @@ function AS:StripTextures(Object, Kill, Alpha)
local Region = select(i, Object:GetRegions())
if Region and Region:IsObjectType('Texture') then
if Kill then
AS:Kill(Object)
AS:Kill(Region)
elseif Alpha then
Region:SetAlpha(0)
else
......
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