Skip to content

Commit dea9f4e

Browse files
committed
Fix warnings
1 parent 4fd9352 commit dea9f4e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/scene_debug.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,6 @@ void Scene_Debug::UpdateInterpreterWindow(int index) {
12221222
lcf::rpg::SaveEventExecState state_display;
12231223
std::string first_line = "";
12241224
bool valid = false;
1225-
int evt_id = 0;
12261225

12271226
auto& bg_states = state_interpreter.background_states;
12281227

@@ -1241,7 +1240,6 @@ void Scene_Debug::UpdateInterpreterWindow(int index) {
12411240
for (auto& ce : Game_Map::GetCommonEvents()) {
12421241
if (ce.GetId() == ce_id) {
12431242
first_line = Debug::FormatEventName(ce);
1244-
evt_id = ce_id;
12451243
valid = true;
12461244
break;
12471245
}

src/window_interpreter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ void Window_Interpreter::Refresh() {
108108
max_evt_id = item.evt_id;
109109
if (item.page_id > max_page_id)
110110
max_page_id = item.page_id;
111-
if (item.cmd_count > max_cmd_count)
111+
if (static_cast<int>(item.cmd_count) > max_cmd_count)
112112
max_cmd_count = item.cmd_count;
113113
}
114114

0 commit comments

Comments
 (0)