GBA: Fix timer initialization

This commit is contained in:
Jeffrey Pfau 2015-03-27 01:34:49 -07:00
parent 4b957cb66d
commit 811ada598e
1 changed files with 1 additions and 1 deletions

View File

@ -464,7 +464,7 @@ void GBATimerWriteTMCNT_HI(struct GBA* gba, int timer, uint16_t control) {
}
gba->memory.io[(REG_TM0CNT_LO + (timer << 2)) >> 1] = currentTimer->reload;
currentTimer->oldReload = currentTimer->reload;
currentTimer->lastEvent = 0;
currentTimer->lastEvent = gba->cpu->cycles;
gba->timersEnabled |= 1 << timer;
} else if (wasEnabled && !currentTimer->enable) {
if (!currentTimer->countUp) {