Skip to content

Commit

Permalink
Don't use a pointer to a pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
Deiz committed Mar 20, 2015
1 parent 5f921f9 commit 155a7fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nlua_misn.c
Expand Up @@ -620,7 +620,7 @@ static int misn_accept( lua_State *L )
else if (i>=MISSION_MAX)
ret = 1;
else { /* copy it over */
memcpy( &player_missions[i], cur_mission, sizeof(Mission) );
memcpy( player_missions[i], cur_mission, sizeof(Mission) );
memset( cur_mission, 0, sizeof(Mission) );
cur_mission = player_missions[i];
cur_mission->accepted = 1; /* Mark as accepted. */
Expand Down

0 comments on commit 155a7fd

Please sign in to comment.