[Bug Fix] Fix data type of GetAggroCount() (#3470)

# Notes
- This is an `unsigned int`, not an `int`, so this fixes that.
This commit is contained in:
Alex King
2023-07-03 01:10:27 -04:00
committed by GitHub
parent a633784f78
commit dc28c8d485
5 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -1449,7 +1449,7 @@ void Lua_Client::UnFreeze() {
self->SendAppearancePacket(AT_Anim, ANIM_STAND);
}
int Lua_Client::GetAggroCount() {
uint32 Lua_Client::GetAggroCount() {
Lua_Safe_Call_Int();
return self->GetAggroCount();
}
@@ -3191,7 +3191,7 @@ luabind::scope lua_register_client() {
.def("GetAFK", (int(Lua_Client::*)(void))&Lua_Client::GetAFK)
.def("GetAccountAge", (int(Lua_Client::*)(void))&Lua_Client::GetAccountAge)
.def("GetAccountFlag", (std::string(Lua_Client::*)(std::string))&Lua_Client::GetAccountFlag)
.def("GetAggroCount", (int(Lua_Client::*)(void))&Lua_Client::GetAggroCount)
.def("GetAggroCount", (uint32(Lua_Client::*)(void))&Lua_Client::GetAggroCount)
.def("GetAllMoney", (uint64(Lua_Client::*)(void))&Lua_Client::GetAllMoney)
.def("GetAlternateCurrencyValue", (int(Lua_Client::*)(uint32))&Lua_Client::GetAlternateCurrencyValue)
.def("GetAnon", (int(Lua_Client::*)(void))&Lua_Client::GetAnon)