blob: 7a6a3eaaf2e88b4180df2bad11cbf397ec4a509b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# Origin: https://github.com/naev/naev/commit/74b9a086a20f80f21ce2f3866b31318e651a6235
# Subject: Turn player_missions in an array of pointers
--- src/hook.c.orig 2015-02-16 17:49:03 UTC
+++ src/hook.c
@@ -837,8 +837,8 @@ static Mission *hook_getMission( Hook *h
{
int i;
for (i=0; i<MISSION_MAX; i++)
- if (player_missions[i].id == hook->u.misn.parent)
- return &player_missions[i];
+ if (player_missions[i]->id == hook->u.misn.parent)
+ return player_missions[i];
return NULL;
}
|