Skip to content

Commit

Permalink
Engine: hotfix arg constness in enternumberwindow()
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-mogilko committed Dec 21, 2024
1 parent 17dde78 commit 0a946ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Engine/gui/guidialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ void enterstringwindow(const char *prompttext, char *dst_buf, size_t dst_sz)
snprintf(dst_buf, dst_sz, "%s", buffer2);
}

int enternumberwindow(char *prompttext)
int enternumberwindow(const char *prompttext)
{
char ourbuf[200];
enterstringwindow(prompttext, ourbuf, sizeof(ourbuf));
Expand Down
2 changes: 1 addition & 1 deletion Engine/gui/guidialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void refresh_gui_screen();
int loadgamedialog(int min_slot, int max_slot);
int savegamedialog(int min_slot, int max_slot);
void enterstringwindow(const char *prompttext, char *dst_buf, size_t dst_sz);
int enternumberwindow(char *prompttext);
int enternumberwindow(const char *prompttext);
int roomSelectorWindow(int currentRoom, int numRooms,
const std::vector<int> &roomNumbers, const std::vector<AGS::Common::String> &roomNames);
int myscimessagebox(const char *lpprompt, char *btn1, char *btn2);
Expand Down

0 comments on commit 0a946ff

Please sign in to comment.