diff --git a/code/game/impl/player.c b/code/game/impl/player.c index cfeaae4..8579c39 100644 --- a/code/game/impl/player.c +++ b/code/game/impl/player.c @@ -3,7 +3,7 @@ #include #include #include "../outfit.h" -#include +#include "../npc.h" void PlayerInit(G_State *game, Player *player) { @@ -69,11 +69,11 @@ void PlayerInput(SDL_Event *event, Player *player) } case SDLK_E: { - for(int i = 0; player->world->npmCount; i++){ - NPC *npc = player->world->npcs[i]; + for(int i = 0; player->world->npcCount; i++){ + NPC *npc = &player->world->npcs[i]; if(AABB_Circle(npc->interationRadius, npc->collision.pos, player->collision) && !npc->infoGiven){ npc->infoGiven=true; - player->knownDetails[player->detailCount] = player->world->bandit->outfitChoices[player->detailCount]; + player->knownDetails[player->detailCount] = player->world->bandit.outfitChoices[player->detailCount]; } } }