File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -172,8 +172,15 @@ public void baseCall(string methodname, params object[] arguments)
172
172
return ;
173
173
}
174
174
175
+ ScriptModule module = null ;
176
+ if ( ! EntityDef . moduledefs . TryGetValue ( className , out module ) )
177
+ {
178
+ Dbg . ERROR_MSG ( "entity::baseCall: entity-module(" + className + ") error!" ) ;
179
+ return ;
180
+ }
181
+
175
182
Method method = null ;
176
- if ( ! EntityDef . moduledefs [ className ] . base_methods . TryGetValue ( methodname , out method ) )
183
+ if ( ! module . base_methods . TryGetValue ( methodname , out method ) )
177
184
{
178
185
Dbg . ERROR_MSG ( className + "::baseCall(" + methodname + "), not found method!" ) ;
179
186
return ;
@@ -222,8 +229,15 @@ public void cellCall(string methodname, params object[] arguments)
222
229
return ;
223
230
}
224
231
232
+ ScriptModule module = null ;
233
+ if ( ! EntityDef . moduledefs . TryGetValue ( className , out module ) )
234
+ {
235
+ Dbg . ERROR_MSG ( "entity::cellCall: entity-module(" + className + ") error!" ) ;
236
+ return ;
237
+ }
238
+
225
239
Method method = null ;
226
- if ( ! EntityDef . moduledefs [ className ] . cell_methods . TryGetValue ( methodname , out method ) )
240
+ if ( ! module . cell_methods . TryGetValue ( methodname , out method ) )
227
241
{
228
242
Dbg . ERROR_MSG ( className + "::cellCall(" + methodname + "), not found method!" ) ;
229
243
return ;
You can’t perform that action at this time.
0 commit comments