Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiLko committed Mar 28, 2024
1 parent c15211b commit 6f09230
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class $modify(PlayLayer) {
bool init(GJGameLevel * level, bool useReplay, bool dontCreateObjects) {
if (!PlayLayer::init(level, useReplay, dontCreateObjects)) return false;

delete counter;
if (!mod->getSettingValue<bool>("enabled")) return true;

counter = CCLabelBMFont::create((std::string("0") + (mod->getSettingValue<bool>("no_text") ? "" : " FPS")).c_str(), getFont(mod->getSettingValue<int64_t>("font") - 1).c_str());
Expand Down Expand Up @@ -84,7 +83,6 @@ class $modify(CCScheduler) {

if (!counter || !PlayLayer::get()) {
if (counter) {
delete counter;
counter = nullptr;
}
return;
Expand Down

0 comments on commit 6f09230

Please sign in to comment.