aboutsummaryrefslogtreecommitdiff
path: root/Engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Engine.cpp')
-rw-r--r--Engine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Engine.cpp b/Engine.cpp
index b5b9f5c..ee9d2b4 100644
--- a/Engine.cpp
+++ b/Engine.cpp
@@ -25,7 +25,7 @@ Engine* Engine::Get()
World* Engine::GetWorld()
{
PathfindingSystem* pathfindingSystem = reinterpret_cast<PathfindingSystem*>(base + Offsets::pathfindingSystem);
- printf("pathfindingSystem: %p\n", pathfindingSystem);
+ //printf("pathfindingSystem: %p\n", pathfindingSystem);
if (!pathfindingSystem)
{
return NULL;
@@ -147,7 +147,7 @@ Player* Engine::GetPlayerByName(char* playerName)
int totalPlayers = GetTotalPlayers();
- for (int i = 0; i < totalPlayers; i++)
+ for (int i = 0; i <= totalPlayers; i++)
{
Player* player = playerArray->playerData[i].player;
if (!player)