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)
{
if (lists.numSyncVars.ContainsKey(className))
{
int num = lists.numSyncVars[className];
return num;
}
// start at zero
return 0;
return lists.numSyncVars.ContainsKey(className)
? lists.numSyncVars[className]
: 0;
}
public static void SetNumSyncVars(string className, int num)