summaryrefslogtreecommitdiffstats
path: root/src/core/core_timing.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-05-04 01:04:28 +0200
committerGitHub <noreply@github.com>2021-05-04 01:04:28 +0200
commitdf51eb9bdec5be189e0662ab81bc29277f3da343 (patch)
treedc1a5cf937fe77ccabb8dab97b5e9a5af9758c27 /src/core/core_timing.cpp
parentMerge pull request #6275 from german77/mousefocus (diff)
parentcore: Resolve misc cases of variable shadowing (diff)
downloadyuzu-df51eb9bdec5be189e0662ab81bc29277f3da343.tar
yuzu-df51eb9bdec5be189e0662ab81bc29277f3da343.tar.gz
yuzu-df51eb9bdec5be189e0662ab81bc29277f3da343.tar.bz2
yuzu-df51eb9bdec5be189e0662ab81bc29277f3da343.tar.lz
yuzu-df51eb9bdec5be189e0662ab81bc29277f3da343.tar.xz
yuzu-df51eb9bdec5be189e0662ab81bc29277f3da343.tar.zst
yuzu-df51eb9bdec5be189e0662ab81bc29277f3da343.zip
Diffstat (limited to '')
-rw-r--r--src/core/core_timing.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cpp
index 874b5673a..c2f0f609f 100644
--- a/src/core/core_timing.cpp
+++ b/src/core/core_timing.cpp
@@ -133,8 +133,8 @@ void CoreTiming::UnscheduleEvent(const std::shared_ptr<EventType>& event_type,
}
}
-void CoreTiming::AddTicks(u64 ticks) {
- this->ticks += ticks;
+void CoreTiming::AddTicks(u64 ticks_to_add) {
+ ticks += ticks_to_add;
downcount -= static_cast<s64>(ticks);
}