Code cleanup (#188)
This commit is contained in:
parent
df53c16620
commit
010fd9402a
185 changed files with 1052 additions and 1271 deletions
|
|
@ -180,12 +180,7 @@ namespace Server.Gumps
|
|||
{
|
||||
m_Page = page;
|
||||
|
||||
int count = m_List.Count - page * EntryCount;
|
||||
|
||||
if (count < 0)
|
||||
count = 0;
|
||||
else if (count > EntryCount)
|
||||
count = EntryCount;
|
||||
int count = Math.Clamp(m_List.Count - page * EntryCount, 0, EntryCount);
|
||||
|
||||
int lastIndex = page * EntryCount + count - 1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue