fix: make it compile

This commit is contained in:
2025-10-06 23:13:46 +01:00
parent 31863b0d31
commit 8363560fd2

View File

@@ -3,7 +3,7 @@
#include <SDL3/SDL_keycode.h>
#include <stdio.h>
#include "../outfit.h"
#include <npc.h>
#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];
}
}
}