Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
kbengine committed Jan 21, 2015
1 parent e28313b commit 0b951e5
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions Entity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,14 @@ public void baseCall(string methodname, object[] arguments)
Dbg.ERROR_MSG(className + "::baseCall(" + methodname + "), currserver=!" + KBEngineApp.app.currserver);
return;
}

Method method = null;
if(!EntityDef.moduledefs[className].base_methods.TryGetValue(methodname, out method))
{
Dbg.ERROR_MSG(className + "::baseCall(" + methodname + "), not found method!");
return;
}

Method method = EntityDef.moduledefs[className].base_methods[methodname];
UInt16 methodID = method.methodUtype;

if(arguments.Length != method.args.Count)
Expand Down Expand Up @@ -156,7 +162,13 @@ public void cellCall(string methodname, object[] arguments)
return;
}

Method method = EntityDef.moduledefs[className].cell_methods[methodname];
Method method = null;
if(!EntityDef.moduledefs[className].cell_methods.TryGetValue(methodname, out method))
{
Dbg.ERROR_MSG(className + "::cellCall(" + methodname + "), not found method!");
return;
}

UInt16 methodID = method.methodUtype;

if(arguments.Length != method.args.Count)
Expand Down

0 comments on commit 0b951e5

Please sign in to comment.