Skip to content

Commit

Permalink
Merge Allow write when the resource is not initialized, but permissio…
Browse files Browse the repository at this point in the history
…ns exists (mr-640)

3a851b3 - tweak(citizen-scripting-core): allow write when the resource is not initialized, but permissions exists
  • Loading branch information
prikolium-cfx committed Dec 25, 2024
2 parents 4fd4f8c + 3a851b3 commit b7186ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ bool ScriptingFilesystemAllowWrite(const std::string& path)

fwRefContainer<Resource> resource = manager->GetResource(resourceName);
// if the resource is not initialized yet, we accept the write even when we can't check the author
if (!resource.GetRef())
if (!resource.GetRef() || resource->GetState() == ResourceState::Uninitialized)
{
return true;
}
Expand Down

0 comments on commit b7186ce

Please sign in to comment.