summaryrefslogtreecommitdiff
path: root/src/code/m_npc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/code/m_npc.c')
-rw-r--r--src/code/m_npc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/code/m_npc.c b/src/code/m_npc.c
index d1308b5..b1e4347 100644
--- a/src/code/m_npc.c
+++ b/src/code/m_npc.c
@@ -408,7 +408,7 @@ void mNpc_SetAnimalLastTalk(Animal_c* animal) {
Anmmem_c* memory = NULL;
s32 memoryIdx;
- if ((&common_data.privateInfo->playerId != NULL) && (animal != NULL)) {
+ if (((uintptr_t)&common_data.privateInfo->playerId != NULL) && (animal != NULL)) {
priv = common_data.privateInfo;
memoryIdx = mNpc_GetAnimalMemoryIdx(&priv->playerId, animal->memories, ANIMAL_MEMORY_NUM);