PINK: Remove delete nullptr. PVS-Studio V575

This commit is contained in:
sluicebox 2024-03-20 17:26:56 -07:00
parent 98db6aa402
commit 754632401f

View File

@ -181,11 +181,9 @@ void PDAMgr::close() {
}
void PDAMgr::loadGlobal() {
if (_globalPage)
return;
delete _globalPage;
_globalPage = new PDAPage("GLOBAL", getGame());
if (_globalPage == nullptr) {
_globalPage = new PDAPage("GLOBAL", getGame());
}
}
void PDAMgr::initPerilButtons() {