Build 0.21.6.0 (1.0 pre-patch)
This commit is contained in:
@@ -197,7 +197,7 @@ namespace Barotrauma.Networking
|
||||
|
||||
public T GetVote<T>(VoteType voteType)
|
||||
{
|
||||
return (votes[(int)voteType] is T) ? (T)votes[(int)voteType] : default(T);
|
||||
return (votes[(int)voteType] is T t) ? t : default;
|
||||
}
|
||||
|
||||
public void SetVote(VoteType voteType, object value)
|
||||
|
||||
Reference in New Issue
Block a user