#include <iostream>
#include <string>
#include <sstream>
+#include <charconv>
/*
* Get some string input at the cursor location.
{
std::stringstream st;
int val;
- char tmp_val[10] = "";
+ char tmp_val[12] = "";
+ std::to_chars(std::begin(tmp_val), std::end(tmp_val) - 1, *value);
st << text << "(" << min << "-" << max << "): ";
int digit = std::max(std::to_string(min).length(), std::to_string(max).length());
while (true) {
void wiz_summon_specific_enemy(player_type *player_ptr, MONRACE_IDX r_idx)
{
if (r_idx <= 0) {
- int val;
+ int val = 1;
if(!get_value("MonsterID", 1, r_info.size() - 1, &val)) {
return;
}
void wiz_summon_pet(player_type *player_ptr, MONRACE_IDX r_idx)
{
if (r_idx <= 0) {
- int val;
+ int val = 1;
if (!get_value("MonsterID", 1, r_info.size() - 1, &val)) {
return;
}