diff options
author | Travis Howell | 2003-12-23 09:03:29 +0000 |
---|---|---|
committer | Travis Howell | 2003-12-23 09:03:29 +0000 |
commit | 96012738245743c8e020076ca09a5386637445aa (patch) | |
tree | 01885ee1f44ac734bb07cc98e82aa137674cbbcc /simon/simon.cpp | |
parent | 35be4ef55437cdf80396568eadd8a98741e6e389 (diff) | |
download | scummvm-rg350-96012738245743c8e020076ca09a5386637445aa.tar.gz scummvm-rg350-96012738245743c8e020076ca09a5386637445aa.tar.bz2 scummvm-rg350-96012738245743c8e020076ca09a5386637445aa.zip |
Ooops
svn-id: r11871
Diffstat (limited to 'simon/simon.cpp')
-rw-r--r-- | simon/simon.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp index 52e6a1ffe4..eabc00b0f5 100644 --- a/simon/simon.cpp +++ b/simon/simon.cpp @@ -1241,17 +1241,15 @@ Subroutine *SimonEngine::getSubroutineByID(uint subroutine_id) { _subroutine = subroutine_id; for (cur = _subroutine_list; cur; cur = cur->next) { - if (cur->id == subroutine_id) { + if (cur->id == subroutine_id) return cur; - } } loadTablesIntoMem(subroutine_id); for (cur = _subroutine_list; cur; cur = cur->next) { - if (cur->id == subroutine_id) { + if (cur->id == subroutine_id) return cur; - } } debug(1,"getSubroutineByID: subroutine %d not found", subroutine_id); |