Skip to content
This repository has been archived by the owner on Jun 29, 2024. It is now read-only.

Commit

Permalink
Fix a paramenter name
Browse files Browse the repository at this point in the history
  • Loading branch information
KoNLiG committed Aug 24, 2022
1 parent 4e37a14 commit 93d850b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions scripting/RareAnimationController.sp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ any Native_GetRareAnimationIndex(Handle plugin, int numParams)
}

RareSequences rare_sequences;
if (!g_RareSequences.GetArray(weapon_defindex, rare_sequences, sizeof(rare_sequences)))
if (!g_RareSequences.GetArray(definition_index, rare_sequences, sizeof(rare_sequences)))
{
return -1;
}
Expand All @@ -245,7 +245,7 @@ any Native_GetRareAnimationDuration(Handle plugin, int numParams)
}

RareSequences rare_sequences;
if (!g_RareSequences.GetArray(weapon_defindex, rare_sequences, sizeof(rare_sequences)))
if (!g_RareSequences.GetArray(definition_index, rare_sequences, sizeof(rare_sequences)))
{
return 0.0;
}
Expand Down
12 changes: 6 additions & 6 deletions scripting/include/RareAnimationController.inc
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,22 @@ enum
/**
* Retrieves the rare sequence index of an econ item.
*
* @param definition_index Item definition index.
* @param definition_index Item definition index.
* @param sequence_type Sequence type, see the enum above.
*
* @return Sequence index, or -1 if no sequences were loaded for the given definition index.
* @error Invalid sequence type.
* @return Sequence index, or -1 if no sequences were loaded for the given definition index.
* @error Invalid sequence type.
*/
int GetRareAnimationIndex(int definition_index, int sequence_type);

/**
* Retrieves the rare sequence duration of an econ item.
*
* @param definition_index Item definition index.
* @param definition_index Item definition index.
* @param sequence_type Sequence type, see the enum above.
*
* @return Animation duration (in seconds), or 0.0 if no sequences were loaded for the given definition index.
* @error Invalid item definition index or invalid sequence type.
* @return Animation duration (in seconds), or 0.0 if no sequences were loaded for the given definition index.
* @error Invalid item definition index or invalid sequence type.
*/
float GetRareAnimationDuration(int definition_index, int sequence_type);

Expand Down

0 comments on commit 93d850b

Please sign in to comment.