Skip to content

Commit

Permalink
Merge pull request #877 from NeatNit/patch-2
Browse files Browse the repository at this point in the history
Update scripted_ents.lua
  • Loading branch information
robotboy655 committed Mar 26, 2015
2 parents 9b152e7 + 30b29ee commit dfed401
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions garrysmod/lua/includes/modules/scripted_ents.lua
Expand Up @@ -149,14 +149,16 @@ function Get( name )
-- Derive from base class
if ( name != SEntList[ name ].Base ) then
if (!Get( SEntList[ name ].Base )) then
local base = Get( SEntList[ name ].Base )
if (!base) then
Msg("ERROR: Trying to derive entity "..tostring(name).." from non existant entity "..tostring(SEntList[ name ].Base).."!\n" )
else
retval = TableInherit( retval, Get( SEntList[ name ].Base ) )
retval = TableInherit( retval, base )
end
Expand Down

0 comments on commit dfed401

Please sign in to comment.