Skip to content

Commit 5389f73

Browse files
authored
Rename variable name to be more descriptive
1 parent c6a1b7b commit 5389f73

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/TSMapEditor/Models/Trigger.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,12 @@ public void ParseConditions(string data, EditorConfig editorConfig)
180180
for (int i = 0; i < eventCount; i++)
181181
{
182182
int conditionIndex = Conversions.IntFromString(dataArray[startIndex], -1);
183-
if (!editorConfig.TriggerEventTypes.TryGetValue(conditionIndex, out TriggerEventType value))
183+
if (!editorConfig.TriggerEventTypes.TryGetValue(conditionIndex, out TriggerEventType triggerEventType))
184184
{
185185
throw new INIConfigException("The map contains a trigger event that is not defined in the editor's config. To prevent data loss, the map cannot be loaded. Event index: " + conditionIndex);
186186
}
187187

188-
bool usesP3 = value.UsesP3;
188+
bool usesP3 = triggerEventType.UsesP3;
189189

190190
var triggerEvent = TriggerCondition.ParseFromArray(dataArray, startIndex, usesP3);
191191
if (triggerEvent == null)

0 commit comments

Comments
 (0)