commit ddfaa92f
Fixed: Adding the runtime to the wrong variable
git-svn-id: https://blockattack.svn.sourceforge.net/svnroot/blockattack/trunk@36 9d7177f8-192b-0410-8f35-a16a89829b06
Changed files
| M | source/code/common.cc before |
diff --git a/source/code/common.cc b/source/code/common.cc
index c18f1d8..04fd4bb 100644
--- a/source/code/common.cc
+++ b/source/code/common.cc
@@ -99,7 +99,7 @@ commonTime addTotalTime(commonTime toAdd)
ct.hours += toAdd.hours;
ct.days += ct.hours/24;
- ct.minutes += ct.hours%24;
+ ct.hours = ct.hours%24;
ct.days += toAdd.days;