Skip to content

Commit 5227143

Browse files
author
L'In20Cible
committed
Fixed an AttributeError into TempEntity.__getattr__ (introduced by 3e3af65).
1 parent cc0f2a2 commit 5227143

File tree

1 file changed

+2
-2
lines changed
  • addons/source-python/packages/source-python/effects

1 file changed

+2
-2
lines changed

addons/source-python/packages/source-python/effects/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def __getattr__(self, name):
125125
if prop_name['type'] == Decal.__name__:
126126

127127
# Return the decal instance...
128-
return Decal(string_tables[Decal._precache_table][
128+
return Decal(string_tables[Decal.precache_table][
129129
getattr(self, prop_name['name'])])
130130

131131
# Otherwise, is the alias an entity?
@@ -144,7 +144,7 @@ def __getattr__(self, name):
144144
elif prop_name['type'] == Model.__name__:
145145

146146
# Get the name of the model...
147-
model_name = string_tables[Model._precache_table][
147+
model_name = string_tables[Model.precache_table][
148148
getattr(self, prop_name['name'])]
149149

150150
# Was the model not precached?

0 commit comments

Comments
 (0)