2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 15:47:46 +00:00

Runtime: Use nullptr where applicable

Same behavior, but no magic 0 value.

While we're in the same area, we can do minor cosmetic changes.
This commit is contained in:
Lioncash
2020-03-27 20:11:51 -04:00
parent e0fe365dfd
commit 194cdf145f
6 changed files with 34 additions and 29 deletions

View File

@@ -5,8 +5,9 @@
namespace urde {
void CFlameWarp::ModifyParticles(std::vector<CParticle>& particles) {
if (x9c_stateMgr == 0 || particles.size() < 9)
if (x9c_stateMgr == nullptr || particles.size() < 9) {
return;
}
std::vector<std::pair<float, u8>> vec;
vec.reserve(particles.size());