diff --git a/CMakeLists.txt b/CMakeLists.txt index d036fee..41389b0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -138,14 +138,6 @@ set(MAIN_SOURCE src/signals/maindispatcher.cpp ) -# main stuff -set(MAIN_HEADERS - # ... -) - -set(MAIN_SOURCE - # ... -) if(CMAKE_SYSTEM_NAME STREQUAL "Windows") list(APPEND MAIN_SOURCE assets/resources.rc) diff --git a/scripts/Window_NameInput.rb b/scripts/Window_NameInput.rb index a880f72..34b6472 100644 --- a/scripts/Window_NameInput.rb +++ b/scripts/Window_NameInput.rb @@ -51,7 +51,7 @@ class Window_NameInput < Window_Base end def init # Create dimension information - @table_size = @character_tables[0].size + @table_size = @character_tables.values.first.size @table_width = @table_size / @table_height @start_x = ((width - 32) - @table_width * @char_w) / 2 @start_y = ((height - 32) - (@table_height + 1) * @char_h + BUTTON_BUFFER) / 2