mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-12-02 06:03:33 +00:00
Merge pull request #38 from krmeet/mod-compatibility
Fix mod compatibility check (2)
This commit is contained in:
commit
56aa303d1f
1 changed files with 6 additions and 3 deletions
|
|
@ -44,8 +44,8 @@ static bool mods_incompatible_match(struct Mod* a, struct Mod* b) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
char* ai = a->incompatible;
|
char* ai = strdup(a->incompatible);
|
||||||
char* bi = b->incompatible;
|
char* bi = strdup(b->incompatible);
|
||||||
char* atoken = NULL;
|
char* atoken = NULL;
|
||||||
char* btoken = NULL;
|
char* btoken = NULL;
|
||||||
char* arest = NULL;
|
char* arest = NULL;
|
||||||
|
|
@ -59,6 +59,9 @@ static bool mods_incompatible_match(struct Mod* a, struct Mod* b) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(ai);
|
||||||
|
free(bi);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue