summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2021-12-13 17:19:24 +0100
committerLioncash <mathew1800@gmail.com>2021-12-13 17:45:18 +0100
commitddda6ae776e0fab22a3cf70a9f4f5a87df86fda8 (patch)
tree6e24c10dedaa69e521d3945f8f6192047bad94a6 /src
parenttas_input: Remove unnecessary includes (diff)
downloadyuzu-ddda6ae776e0fab22a3cf70a9f4f5a87df86fda8.tar
yuzu-ddda6ae776e0fab22a3cf70a9f4f5a87df86fda8.tar.gz
yuzu-ddda6ae776e0fab22a3cf70a9f4f5a87df86fda8.tar.bz2
yuzu-ddda6ae776e0fab22a3cf70a9f4f5a87df86fda8.tar.lz
yuzu-ddda6ae776e0fab22a3cf70a9f4f5a87df86fda8.tar.xz
yuzu-ddda6ae776e0fab22a3cf70a9f4f5a87df86fda8.tar.zst
yuzu-ddda6ae776e0fab22a3cf70a9f4f5a87df86fda8.zip
Diffstat (limited to 'src')
-rw-r--r--src/input_common/drivers/tas_input.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/input_common/drivers/tas_input.cpp b/src/input_common/drivers/tas_input.cpp
index d14a43b9e..bd4e411c9 100644
--- a/src/input_common/drivers/tas_input.cpp
+++ b/src/input_common/drivers/tas_input.cpp
@@ -78,9 +78,8 @@ void Tas::LoadTasFiles() {
}
void Tas::LoadTasFile(size_t player_index, size_t file_index) {
- if (!commands[player_index].empty()) {
- commands[player_index].clear();
- }
+ commands[player_index].clear();
+
std::string file = Common::FS::ReadStringFromFile(
Common::FS::GetYuzuPath(Common::FS::YuzuPath::TASDir) /
fmt::format("script{}-{}.txt", file_index, player_index + 1),