Skip to content

Commit 78d108d

Browse files
committed
bug fix
1 parent a952173 commit 78d108d

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

mod.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"geode": "4.0.0-beta.1",
2+
"geode": "4.0.1",
33
"gd": {
44
"win": "2.2074",
55
"android": "2.2074",
@@ -8,7 +8,7 @@
88
},
99
"id": "alphalaneous.fine_outline",
1010
"name": "Fine Outline",
11-
"version": "v1.0.9",
11+
"version": "v1.0.10",
1212
"developer": "Alphalaneous",
1313
"description": "Change the black outline color of icons!",
1414
"dependencies": [

src/CCSpriteBatchNode.h

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,14 @@ class BatchHandler {
2222
#define DO_FAKE(method) if (!BatchHandler::get().isFake(this)) CCSpriteBatchNode::method; else CCNode::method;
2323

2424
class $modify(MyCCSpriteBatchNode, CCSpriteBatchNode) {
25-
struct Fields {
26-
CCSpriteBatchNode* m_self;
27-
~Fields() {
28-
BatchHandler::get().m_batchNodes.erase(m_self);
29-
}
30-
};
25+
26+
void destructor() {
27+
BatchHandler::get().m_batchNodes.erase(this);
28+
CCSpriteBatchNode::~CCSpriteBatchNode();
29+
}
30+
3131
static CCSpriteBatchNode* createWithTexture(CCTexture2D* tex, unsigned int capacity) {
3232
auto ret = CCSpriteBatchNode::createWithTexture(tex, capacity);
33-
static_cast<MyCCSpriteBatchNode*>(ret)->m_fields->m_self = ret;
3433
BatchHandler::get().m_batchNodes[ret] = false;
3534
return ret;
3635
}

0 commit comments

Comments
 (0)