aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/Sys/SysClassRegistry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wintermute/Sys/SysClassRegistry.cpp')
-rw-r--r--engines/wintermute/Sys/SysClassRegistry.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/wintermute/Sys/SysClassRegistry.cpp b/engines/wintermute/Sys/SysClassRegistry.cpp
index 0a41b59d35..7025e4c79a 100644
--- a/engines/wintermute/Sys/SysClassRegistry.cpp
+++ b/engines/wintermute/Sys/SysClassRegistry.cpp
@@ -177,7 +177,7 @@ HRESULT CSysClassRegistry::SaveTable(CBGame *Game, CBPersistMgr *persistMgr, boo
counter++;
if (!quickSave) {
- Game->_indicatorProgress = 50.0f / (float)((float)_classes.size() / (float)counter);
+ Game->_indicatorProgress = (int)(50.0f / (float)((float)_classes.size() / (float)counter));
Game->DisplayContent(false);
Game->_renderer->Flip();
}
@@ -206,10 +206,10 @@ HRESULT CSysClassRegistry::LoadTable(CBGame *Game, CBPersistMgr *persistMgr) {
_instanceMap.clear();
- int numClasses = persistMgr->getDWORD();
+ uint32 numClasses = persistMgr->getDWORD();
- for (int i = 0; i < numClasses; i++) {
- Game->_indicatorProgress = 50.0f / (float)((float)numClasses / (float)i);
+ for (uint32 i = 0; i < numClasses; i++) {
+ Game->_indicatorProgress = (int)(50.0f / (float)((float)numClasses / (float)i));
Game->DisplayContentSimple();
Game->_renderer->Flip();