mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 15:07:28 +00:00
use size_t
This commit is contained in:
parent
199c6f745d
commit
e1dc847e1d
@ -166,7 +166,7 @@ void EntityManager::DestroyEntity(Entity* entity) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void EntityManager::SerializeEntities() {
|
void EntityManager::SerializeEntities() {
|
||||||
for (int32_t i = 0; i < m_EntitiesToSerialize.size(); i++) {
|
for (size_t i = 0; i < m_EntitiesToSerialize.size(); i++) {
|
||||||
const LWOOBJID toSerialize = m_EntitiesToSerialize[i];
|
const LWOOBJID toSerialize = m_EntitiesToSerialize[i];
|
||||||
auto* entity = GetEntity(toSerialize);
|
auto* entity = GetEntity(toSerialize);
|
||||||
|
|
||||||
@ -196,7 +196,7 @@ void EntityManager::SerializeEntities() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void EntityManager::KillEntities() {
|
void EntityManager::KillEntities() {
|
||||||
for (int32_t i = 0; i < m_EntitiesToKill.size(); i++) {
|
for (size_t i = 0; i < m_EntitiesToKill.size(); i++) {
|
||||||
const LWOOBJID toKill = m_EntitiesToKill[i];
|
const LWOOBJID toKill = m_EntitiesToKill[i];
|
||||||
auto* entity = GetEntity(toKill);
|
auto* entity = GetEntity(toKill);
|
||||||
|
|
||||||
@ -215,7 +215,7 @@ void EntityManager::KillEntities() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void EntityManager::DeleteEntities() {
|
void EntityManager::DeleteEntities() {
|
||||||
for (int32_t i = 0; i < m_EntitiesToDelete.size(); i++) {
|
for (size_t i = 0; i < m_EntitiesToDelete.size(); i++) {
|
||||||
const LWOOBJID toDelete = m_EntitiesToDelete[i];
|
const LWOOBJID toDelete = m_EntitiesToDelete[i];
|
||||||
auto entityToDelete = GetEntity(toDelete);
|
auto entityToDelete = GetEntity(toDelete);
|
||||||
if (entityToDelete) {
|
if (entityToDelete) {
|
||||||
|
Loading…
Reference in New Issue
Block a user