fix the bugfixes build fix

This commit is contained in:
Prakxo
2024-08-13 17:22:51 +02:00
parent ccd9175bf8
commit b6dfdd1478
+3 -1
View File
@@ -362,7 +362,7 @@ extern void mNpc_CopyAnimalMemory(Anmmem_c* dst, Anmmem_c* src) {
*/
extern void mNpc_AddFriendship(Anmmem_c* memory, int amount) {
int friendship = memory->friendship + amount;
int friendship;
/* @BUG - devs checked for memory being NULL *after* deferencing it */
#ifdef BUGFIXES
@@ -371,6 +371,8 @@ extern void mNpc_AddFriendship(Anmmem_c* memory, int amount) {
}
#endif
friendship = memory->friendship + amount;
#ifndef BUGFIXES
if (memory == NULL) {