Skip to content

Commit 9c0e9fa

Browse files
committed
Revert "bug fix"
This reverts commit 78d108d.
1 parent 78d108d commit 9c0e9fa

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
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.1",
2+
"geode": "4.0.0-beta.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.10",
11+
"version": "v1.0.9",
1212
"developer": "Alphalaneous",
1313
"description": "Change the black outline color of icons!",
1414
"dependencies": [

src/CCSpriteBatchNode.h

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

2424
class $modify(MyCCSpriteBatchNode, CCSpriteBatchNode) {
25-
26-
void destructor() {
27-
BatchHandler::get().m_batchNodes.erase(this);
28-
CCSpriteBatchNode::~CCSpriteBatchNode();
29-
}
30-
25+
struct Fields {
26+
CCSpriteBatchNode* m_self;
27+
~Fields() {
28+
BatchHandler::get().m_batchNodes.erase(m_self);
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;
3334
BatchHandler::get().m_batchNodes[ret] = false;
3435
return ret;
3536
}

0 commit comments

Comments
 (0)