mirror of https://github.com/AxioDL/metaforce.git
CStaticInterference: Eliminate sign conversion warnings in constructor
We can just accept a size_t to prevent warnings from occurring.
This commit is contained in:
parent
871d3dc6ec
commit
463e9e9f60
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace urde {
|
||||
|
||||
CStaticInterference::CStaticInterference(int sourceCount) { m_sources.reserve(sourceCount); }
|
||||
CStaticInterference::CStaticInterference(size_t sourceCount) { m_sources.reserve(sourceCount); }
|
||||
|
||||
void CStaticInterference::RemoveSource(TUniqueId id) {
|
||||
auto iter = std::find_if(m_sources.begin(), m_sources.end(),
|
||||
|
|
|
@ -16,7 +16,7 @@ class CStaticInterference {
|
|||
std::vector<CStaticInterferenceSource> m_sources;
|
||||
|
||||
public:
|
||||
explicit CStaticInterference(int sourceCount);
|
||||
explicit CStaticInterference(size_t sourceCount);
|
||||
void RemoveSource(TUniqueId id);
|
||||
void Update(CStateManager&, float dt);
|
||||
float GetTotalInterference() const;
|
||||
|
|
Loading…
Reference in New Issue