mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 20:53:50 +00:00
Fix warning implicit conversion changes singedness
This commit is contained in:
parent
c866fdff86
commit
ed89126828
3 changed files with 4 additions and 5 deletions
|
@ -432,7 +432,7 @@ namespace MWWorld
|
|||
mHasState = true;
|
||||
}
|
||||
|
||||
int CellStore::count() const
|
||||
std::size_t CellStore::count() const
|
||||
{
|
||||
return mMergedRefs.size();
|
||||
}
|
||||
|
|
|
@ -240,7 +240,7 @@ namespace MWWorld
|
|||
|
||||
ESM::FogState* getFog () const;
|
||||
|
||||
int count() const;
|
||||
std::size_t count() const;
|
||||
///< Return total number of references, including deleted ones.
|
||||
|
||||
void load ();
|
||||
|
|
|
@ -379,7 +379,7 @@ namespace MWWorld
|
|||
unloadCell (active++);
|
||||
}
|
||||
|
||||
int refsToLoad = 0;
|
||||
std::size_t refsToLoad = 0;
|
||||
// get the number of refs to load
|
||||
for (int x=X-mHalfGridSize; x<=X+mHalfGridSize; ++x)
|
||||
{
|
||||
|
@ -553,8 +553,7 @@ namespace MWWorld
|
|||
while (active!=mActiveCells.end())
|
||||
unloadCell (active++);
|
||||
|
||||
int refsToLoad = cell->count();
|
||||
loadingListener->setProgressRange(refsToLoad);
|
||||
loadingListener->setProgressRange(cell->count());
|
||||
|
||||
// Load cell.
|
||||
loadCell (cell, loadingListener, changeEvent);
|
||||
|
|
Loading…
Reference in a new issue