fixed NPC spawning bug

This commit is contained in:
2020-09-24 21:32:14 -05:00
parent 8f84c4c2f8
commit 874479d1cf
2 changed files with 1 additions and 3 deletions

View File

@@ -22,8 +22,7 @@ public:
appearanceData.iBarkerType = 0;
appearanceData.iNPC_ID = id;
chunkPos = ChunkManager::grabChunk(x, y);
currentChunks = ChunkManager::grabChunks(chunkPos);
chunkPos = std::pair<int, int>(0, 0);
};
BaseNPC(int x, int y, int z, int type, int id, NPCClass classType) : BaseNPC(x, y, z, type, id) {
npcClass = classType;