[Fix] Typo causing hyperspace selection seg fault.

This commit is contained in:
Allanis 2013-03-10 16:12:44 +00:00
parent ccf15467f7
commit 46109626a4

View File

@ -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,