Skip to content

Commit

Permalink
BugFix: Order parameter was incorrect for python agent sort example.
Browse files Browse the repository at this point in the history
Closes #159
  • Loading branch information
Robadob committed Sep 8, 2023
1 parent ad5fdca commit e8f13c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guide/host-functions/agent-operations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Agent populations can also be sorted according to a variable, the C++ API can ad
# Retrieve the host agent tools for agent sheep in the default state
sheep = FLAMEGPU.agent("sheep");
# Sort the sheep population according to their health variable
sheep.sortFloat("health", pyflamegpu.ASC);
sheep.sortFloat("health", pyflamegpu.HostAgentAPI.ASC);

.. _Host Agent Creation:

Expand Down

0 comments on commit e8f13c5

Please sign in to comment.