From 96012738245743c8e020076ca09a5386637445aa Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Tue, 23 Dec 2003 09:03:29 +0000 Subject: Ooops svn-id: r11871 --- simon/simon.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'simon/simon.cpp') 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); -- cgit v1.2.3