Skip to content

Commit 00e1399

Browse files
authored
chore(script/cleanup): Minor code clean up (#113)
1 parent 2343495 commit 00e1399

File tree

5 files changed

+133
-196
lines changed

5 files changed

+133
-196
lines changed

src/AnticheatData.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ void AnticheatData::SetTotalReports(uint32 _totalReports)
8888
totalReports = _totalReports;
8989
}
9090

91-
void AnticheatData::SetTypeReports(uint32 type, uint32 amount)
91+
void AnticheatData::SetTypeReports(uint8 type, uint32 amount)
9292
{
9393
typeReports[type] = amount;
9494
}
9595

96-
uint32 AnticheatData::GetTypeReports(uint32 type) const
96+
uint32 AnticheatData::GetTypeReports(uint8 type) const
9797
{
9898
return typeReports[type];
9999
}

src/AnticheatData.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ class AnticheatData
4646
uint32 GetTotalReports() const;
4747
void SetTotalReports(uint32 _totalReports);
4848

49-
uint32 GetTypeReports(uint32 type) const;
50-
void SetTypeReports(uint32 type, uint32 amount);
49+
uint32 GetTypeReports(uint8 type) const;
50+
void SetTypeReports(uint8 type, uint32 amount);
5151

5252
float GetAverage() const;
5353
void SetAverage(float _average);

0 commit comments

Comments
 (0)