[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;
|
extern int pilots;
|
||||||
|
|
||||||
// Space stuff for GUI.
|
// Space stuff for GUI.
|
||||||
extern StarSystem* systems_nstack;
|
extern StarSystem* systems_stack;
|
||||||
|
|
||||||
// GUI crap.
|
// GUI crap.
|
||||||
typedef struct Radar_ {
|
typedef struct Radar_ {
|
||||||
@ -398,7 +398,7 @@ void player_render(void) {
|
|||||||
|
|
||||||
gl_printMid(&gl_smallFont, (int)gui.nav.w, gui.nav.x,
|
gl_printMid(&gl_smallFont, (int)gui.nav.w, gui.nav.x,
|
||||||
gui.nav.y - 10 - gl_smallFont.h, NULL, "%s",
|
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 {
|
else {
|
||||||
// No NAV target.
|
// No NAV target.
|
||||||
@ -986,7 +986,7 @@ void player_jump(void) {
|
|||||||
// Player actually broke hyperspace (Let's enter a new system).
|
// Player actually broke hyperspace (Let's enter a new system).
|
||||||
void player_brokeHyperspace(void) {
|
void player_brokeHyperspace(void) {
|
||||||
// Enter the new system.
|
// 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.
|
// Set position, pilot_update will handle the lowering of velocity.
|
||||||
player_warp(-cos(player->solid->dir) * MIN_HYPERSPACE_DIST * 1.5,
|
player_warp(-cos(player->solid->dir) * MIN_HYPERSPACE_DIST * 1.5,
|
||||||
|
Loading…
Reference in New Issue
Block a user