Skip to content
This repository was archived by the owner on Oct 28, 2023. It is now read-only.

Commit 42bf605

Browse files
committed
Sync Command.h
1 parent 2282280 commit 42bf605

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

headers/mc/Command.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,13 @@ class Actor;
148148
class HashedString {
149149
uint64_t hash;
150150
std::string str;
151+
int64_t unk;
151152

152153
public:
153154
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);
158158
}
159159
MCINLINE bool operator==(class HashedString const &a0) {
160160
bool (HashedString::*rv)(class HashedString const &);
@@ -169,6 +169,7 @@ class HashedString {
169169
MCINLINE HashedString(const char *ch) {
170170
str = ch;
171171
hash = computeHash(ch);
172+
unk = 0;
172173
}
173174
};
174175
struct ActorDefinitionIdentifier {
@@ -226,7 +227,7 @@ struct InvertableFilter {
226227
};
227228
class CommandSelectorBase {
228229
public:
229-
void *filler[192 / 8];
230+
void *filler[200 / 8];
230231
#ifdef MC_COMMAND_EXTRA
231232
MCINLINE bool isExplicitIdSelector() const { return explicitIdSelector; }
232233
MCINLINE void addNameFilter(InvertableFilter<std::string> const &filter) {

0 commit comments

Comments
 (0)