Fix doubling of current on vtimer stop.

This commit is contained in:
Unknown W. Brackets 2013-10-20 14:49:07 -07:00
parent 167699ac9e
commit 9bd988e376

View File

@ -359,7 +359,8 @@ u32 sceKernelStartVTimer(u32 uid) {
}
void __stopVTimer(VTimer *vt) {
vt->nvt.current += __getVTimerCurrentTime(vt);
// This increases (__getVTimerCurrentTime includes nvt.current.)
vt->nvt.current = __getVTimerCurrentTime(vt);
vt->nvt.active = 0;
vt->nvt.base = 0;
}