Permalink
Browse files

Fixed Singleplayer crash with Light Tool

  • Loading branch information...
1 parent a68e46e commit 47da51f5b74fba393336fc6b0cf900578fbe4910 @robotboy655 robotboy655 committed Sep 23, 2015
Showing with 2 additions and 2 deletions.
  1. +2 −2 garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/stools/light.lua
@@ -206,8 +206,8 @@ end
function TOOL:Think()
- if ( !IsValid( self.GhostEntity ) || self.GhostEntity:GetModel() != "models/MaxOfS2D/light_tubular.mdl" ) then
- self:MakeGhostEntity( "models/MaxOfS2D/light_tubular.mdl", Vector( 0, 0, 0 ), Angle( 0, 0, 0 ) )
+ if ( !IsValid( self.GhostEntity ) || self.GhostEntity:GetModel() != "models/maxofs2d/light_tubular.mdl" ) then
+ self:MakeGhostEntity( "models/maxofs2d/light_tubular.mdl", Vector( 0, 0, 0 ), Angle( 0, 0, 0 ) )
end
self:UpdateGhostLight( self.GhostEntity, self:GetOwner() )

0 comments on commit 47da51f

Please sign in to comment.