chore: Use var everywhere (#2294)

This commit is contained in:
Kamron Batman 2025-12-27 16:47:28 -08:00 • committed by GitHub
parent 0b34cc4417
commit ebaf104935
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
267 changed files with 873 additions and 873 deletions

View file

@ -311,7 +311,7 @@ namespace Server.Guilds
public void AllianceChat(Mobile from, int hue, string text)
{
Span<byte> buffer = stackalloc byte[OutgoingMessagePackets.GetMaxMessageLength(text)].InitializePacket();
var buffer = stackalloc byte[OutgoingMessagePackets.GetMaxMessageLength(text)].InitializePacket();
for (var i = 0; i < m_Members.Count; i++)
{
@ -1115,7 +1115,7 @@ namespace Server.Guilds
public static void Tidy(List<Guild> list)
{
for (int i = list.Count - 1; i >= 0; i--)
for (var i = list.Count - 1; i >= 0; i--)
{
var entry = list[i];
if (entry?.Disbanded != false)
@ -1468,7 +1468,7 @@ namespace Server.Guilds
public void GuildChat(Mobile from, int hue, string text)
{
Span<byte> buffer = stackalloc byte[OutgoingMessagePackets.GetMaxMessageLength(text)].InitializePacket();
var buffer = stackalloc byte[OutgoingMessagePackets.GetMaxMessageLength(text)].InitializePacket();
for (var i = 0; i < Members.Count; i++)
{