[Add] Finally, fixed two horrible ugly ass bugs.

This commit is contained in:
Allanis 2013-04-03 19:08:42 +01:00
parent 75f7c81d1b
commit 4f93fba024
3 changed files with 3 additions and 2 deletions

View File

@ -242,7 +242,7 @@ void player_newShip(Ship* ship, double px, double py,
"Please name your shiny new %s", ship->name);
player_newShipMake(ship_name);
free(ship->name);
free(ship_name);
}
// Change the players ship.

View File

@ -247,6 +247,7 @@ void window_addList(const unsigned int wid, const int x, const int y,
wgt->dat.lst.selected = defitem; // -1 would be none.
wgt->dat.lst.pos = 0;
wgt->dat.lst.fptr = call;
wgt->w = (double) w;
wgt->h = (double) h - ((h % (gl_defFont.h+2)) + 2);
if(x < 0) wgt->x = wdw->w - wgt->w + x;