mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 07:23:51 +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;
|
mHasState = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CellStore::count() const
|
std::size_t CellStore::count() const
|
||||||
{
|
{
|
||||||
return mMergedRefs.size();
|
return mMergedRefs.size();
|
||||||
}
|
}
|
||||||
|
|
|
@ -240,7 +240,7 @@ namespace MWWorld
|
||||||
|
|
||||||
ESM::FogState* getFog () const;
|
ESM::FogState* getFog () const;
|
||||||
|
|
||||||
int count() const;
|
std::size_t count() const;
|
||||||
///< Return total number of references, including deleted ones.
|
///< Return total number of references, including deleted ones.
|
||||||
|
|
||||||
void load ();
|
void load ();
|
||||||
|
|
|
@ -379,7 +379,7 @@ namespace MWWorld
|
||||||
unloadCell (active++);
|
unloadCell (active++);
|
||||||
}
|
}
|
||||||
|
|
||||||
int refsToLoad = 0;
|
std::size_t refsToLoad = 0;
|
||||||
// get the number of refs to load
|
// get the number of refs to load
|
||||||
for (int x=X-mHalfGridSize; x<=X+mHalfGridSize; ++x)
|
for (int x=X-mHalfGridSize; x<=X+mHalfGridSize; ++x)
|
||||||
{
|
{
|
||||||
|
@ -553,8 +553,7 @@ namespace MWWorld
|
||||||
while (active!=mActiveCells.end())
|
while (active!=mActiveCells.end())
|
||||||
unloadCell (active++);
|
unloadCell (active++);
|
||||||
|
|
||||||
int refsToLoad = cell->count();
|
loadingListener->setProgressRange(cell->count());
|
||||||
loadingListener->setProgressRange(refsToLoad);
|
|
||||||
|
|
||||||
// Load cell.
|
// Load cell.
|
||||||
loadCell (cell, loadingListener, changeEvent);
|
loadCell (cell, loadingListener, changeEvent);
|
||||||
|
|
Loading…
Reference in a new issue