mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-05-23 06:34:18 -04:00
fix the bugfixes build fix
This commit is contained in:
+3
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user