Skip to content

Commit

Permalink
tweak(citizen-scripting-core): allow write when the resource is not i…
Browse files Browse the repository at this point in the history
…nitialized, but permissions exists
  • Loading branch information
FabianTerhorst committed Dec 24, 2024
1 parent 05bfe6e commit 3a851b3
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 3a851b3

Please sign in to comment.