diff options
-rw-r--r-- | src/graphic/graphic.cpp | 4 | ||||
-rw-r--r-- | src/gui/stats.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/graphic/graphic.cpp b/src/graphic/graphic.cpp index cbd0a9da..86aa62d4 100644 --- a/src/graphic/graphic.cpp +++ b/src/graphic/graphic.cpp @@ -313,9 +313,9 @@ void do_graphic(void) { break; case 3: char money[20]; - sprintf(money, "%i gp", char_info->zeny); + sprintf(money, "%i gp", char_info->gp); buy_dialog[4].dp = &money; - buy_dialog[5].d1 = (int)(char_info->zeny/get_item_price(buy_dialog[3].d1)); + buy_dialog[5].d1 = (int)(char_info->gp/get_item_price(buy_dialog[3].d1)); if(buy_dialog[5].d2>buy_dialog[5].d1) //alfont_textprintf(double_buffer, gui_font, 0, 10, MAKECOL_WHITE, "%i", buy_dialog[5].d1); dialog_message(buy_dialog, MSG_DRAW, 0, 0); diff --git a/src/gui/stats.cpp b/src/gui/stats.cpp index 5cdbea8f..881d75ee 100644 --- a/src/gui/stats.cpp +++ b/src/gui/stats.cpp @@ -45,7 +45,7 @@ DIALOG stats_dialog[] = { void update_stats_dialog() { sprintf(stats_name, "%s Lvl: % 2i Job: % 2i", char_info->name, char_info->lv, char_info->job_lv); sprintf(stats_hp, "HP % 4d / % 4d", char_info->hp, char_info->max_hp); - sprintf(stats_zeny, "GP % 5i", char_info->zeny); + sprintf(stats_zeny, "GP % 5i", char_info->gp); sprintf(stats_sp, "SP % 4d / % 4d", char_info->sp, char_info->max_sp); stats_dialog[2].d1 = char_info->hp; stats_dialog[2].d2 = char_info->max_hp; |