Skip to content

Commit

Permalink
client: remoteId -> remoteID
Browse files Browse the repository at this point in the history
  • Loading branch information
C0kkie committed Sep 14, 2023
1 parent c1c47e4 commit 21a8b55
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions shared/bindings/BaseObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,9 @@ static void SetMultipleMetaData(const v8::FunctionCallbackInfo<v8::Value>& info)
auto dict = V8Helpers::CppValue<v8::Local<v8::Value>>(info[0].As<v8::Object>());
std::unordered_map<std::string, MValue> values;

if (dict.has_value())
if(dict.has_value())
{
for (auto& [key, value] : dict.value())
values[key] = V8Helpers::V8ToMValue(value);
for(auto& [key, value] : dict.value()) values[key] = V8Helpers::V8ToMValue(value);
}

obj->SetMultipleMetaData(values);
Expand Down Expand Up @@ -225,7 +224,7 @@ extern V8Class v8BaseObject("BaseObject",
V8Helpers::SetAccessor<IBaseObject, uint32_t, &IBaseObject::GetID>(isolate, tpl, "id");
#ifdef ALT_CLIENT_API
V8Helpers::SetAccessor<IBaseObject, bool, &IBaseObject::IsRemote>(isolate, tpl, "isRemote");
V8Helpers::SetAccessor<IBaseObject, uint32_t, &IBaseObject::GetRemoteID>(isolate, tpl, "remoteId");
V8Helpers::SetAccessor<IBaseObject, uint32_t, &IBaseObject::GetRemoteID>(isolate, tpl, "remoteID");
V8Helpers::SetStaticMethod(isolate, tpl, "getByRemoteID", StaticGetByRemoteId);
#endif // ALT_CLIENT_API
V8Helpers::SetMethod(isolate, tpl, "hasSyncedMeta", HasSyncedMeta);
Expand Down

0 comments on commit 21a8b55

Please sign in to comment.