Weaver: simplify GetSyncVarStart

This commit is contained in:
vis2k 2019-01-01 15:39:38 +01:00
parent d928817a3d
commit db06497c1e

View File

@ -227,13 +227,9 @@ public static void DLog(TypeDefinition td, string fmt, params object[] args)
public static int GetSyncVarStart(string className) public static int GetSyncVarStart(string className)
{ {
if (lists.numSyncVars.ContainsKey(className)) return lists.numSyncVars.ContainsKey(className)
{ ? lists.numSyncVars[className]
int num = lists.numSyncVars[className]; : 0;
return num;
}
// start at zero
return 0;
} }
public static void SetNumSyncVars(string className, int num) public static void SetNumSyncVars(string className, int num)