[Fix] Typo causing hyperspace selection seg fault.
This commit is contained in:
parent
ccf15467f7
commit
46109626a4
@ -44,7 +44,7 @@ extern Pilot** pilot_stack;
|
||||
extern int pilots;
|
||||
|
||||
// Space stuff for GUI.
|
||||
extern StarSystem* systems_nstack;
|
||||
extern StarSystem* systems_stack;
|
||||
|
||||
// GUI crap.
|
||||
typedef struct Radar_ {
|
||||
@ -398,7 +398,7 @@ void player_render(void) {
|
||||
|
||||
gl_printMid(&gl_smallFont, (int)gui.nav.w, gui.nav.x,
|
||||
gui.nav.y - 10 - gl_smallFont.h, NULL, "%s",
|
||||
systems_nstack[cur_system->jumps[hyperspace_target]].name);
|
||||
systems_stack[cur_system->jumps[hyperspace_target]].name);
|
||||
}
|
||||
else {
|
||||
// No NAV target.
|
||||
@ -986,7 +986,7 @@ void player_jump(void) {
|
||||
// Player actually broke hyperspace (Let's enter a new system).
|
||||
void player_brokeHyperspace(void) {
|
||||
// Enter the new system.
|
||||
space_init(systems_nstack[cur_system->jumps[hyperspace_target]].name);
|
||||
space_init(systems_stack[cur_system->jumps[hyperspace_target]].name);
|
||||
|
||||
// Set position, pilot_update will handle the lowering of velocity.
|
||||
player_warp(-cos(player->solid->dir) * MIN_HYPERSPACE_DIST * 1.5,
|
||||
|
Loading…
Reference in New Issue
Block a user