This repository was archived by the owner on Oct 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -148,13 +148,13 @@ class Actor;
148
148
class HashedString {
149
149
uint64_t hash;
150
150
std::string str;
151
+ int64_t unk;
151
152
152
153
public:
153
154
std::string const &getString () const { return str; }
154
- MCINLINE unsigned __int64 computeHash (char const *a0) {
155
- unsigned __int64 (HashedString::*rv)(char const *);
156
- *((void **)&rv) = dlsym (" ?computeHash@HashedString@@SA_KPEBD@Z" );
157
- return (this ->*rv)(a0);
155
+ MCINLINE static unsigned __int64 computeHash (char const *a0) {
156
+ return ((unsigned __int64 (*)(char const *))dlsym (
157
+ " ?computeHash@HashedString@@SA_KPEBD@Z" ))(a0);
158
158
}
159
159
MCINLINE bool operator ==(class HashedString const &a0) {
160
160
bool (HashedString::*rv)(class HashedString const &);
@@ -169,6 +169,7 @@ class HashedString {
169
169
MCINLINE HashedString (const char *ch) {
170
170
str = ch;
171
171
hash = computeHash (ch);
172
+ unk = 0 ;
172
173
}
173
174
};
174
175
struct ActorDefinitionIdentifier {
@@ -226,7 +227,7 @@ struct InvertableFilter {
226
227
};
227
228
class CommandSelectorBase {
228
229
public:
229
- void *filler[192 / 8 ];
230
+ void *filler[200 / 8 ];
230
231
#ifdef MC_COMMAND_EXTRA
231
232
MCINLINE bool isExplicitIdSelector () const { return explicitIdSelector; }
232
233
MCINLINE void addNameFilter (InvertableFilter<std::string> const &filter) {
You can’t perform that action at this time.
0 commit comments