Skip to content

Commit

Permalink
Profiler: fixed order of parameters in nss script for PushPerfScope() (
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-lecomte authored Dec 20, 2024
1 parent e48c788 commit 09544eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ https://github.com/nwnxee/unified/compare/build8193.36.12...HEAD
- Docker: Add dotnet-runtime-8.0, dotnet-apphost-pack-8.0 packages.
- Item: Added parameter `bUpdateCreatureAppearance` to SetItemAppearance() to update the appearance of the item's possessor.
- Events: Added PLAYER_NAME, CDKEY as event data to the client disconnect events `NWNX_ON_CLIENT_DISCONNECT_{BEFORE|AFTER}`.
- Profiler: fixed order of parameters in nss script for PushPerfScope()

### Deprecated
- DotNET: GetFunctionPointer()
Expand Down
6 changes: 3 additions & 3 deletions Plugins/Profiler/NWScript/nwnx_profiler.nss
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ void NWNX_Profiler_PushPerfScope(string name, string tag0_tag = "", string tag0_
{
string sFunc = "PushPerfScope";

NWNX_PushArgumentString(name);

if (tag0_value != "" && tag0_tag != "")
{
NWNX_PushArgumentString(tag0_value);
NWNX_PushArgumentString(tag0_tag);
}

NWNX_PushArgumentString(name);

NWNX_CallFunction(NWNX_Profiler, sFunc);
}

Expand All @@ -57,4 +57,4 @@ void NWNX_Profiler_PopPerfScope()
string sFunc = "PopPerfScope";

NWNX_CallFunction(NWNX_Profiler, sFunc);
}
}

0 comments on commit 09544eb

Please sign in to comment.