mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 03:55:11 +00:00
Fixed crash in get_id_from_behavior_name()
This commit is contained in:
parent
ff7d976551
commit
9d8f8c64a7
1 changed files with 1 additions and 1 deletions
|
@ -589,7 +589,7 @@ const char* get_behavior_name_from_id(enum BehaviorId id) {
|
|||
|
||||
enum BehaviorId get_id_from_behavior_name(const char* name) {
|
||||
for (enum BehaviorId i = 0; i < id_bhv_max_count; i++) {
|
||||
if (!strcmp(name, gBehaviorTable[i].name)) {
|
||||
if (gBehaviorTable[i].name && !strcmp(name, gBehaviorTable[i].name)) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue