SetVariantString uses string by reference #2193
Labels
Bug
general bugs; can be anything
Good First Issue
Issues that are suitable for first-time contributors.
Help us help you
SourceMod Version: 1.12.0.7031
Description
SetVariantString will keep a reference to Sourcepawn string variable, instead of copying its value.
Not sure if this is intentional, if it is, should probably be specified in the docs.
Problematic Code (or Steps to Reproduce)
The following results in both the input and variant being "IgniteLifetime"
The expected behavior is variant being "2".
The text was updated successfully, but these errors were encountered: