@@ -1453,17 +1453,17 @@ private void SaveFormValues(HasItemCondition condition)
14531453 if ( rdoInvPlayerVariable . Checked )
14541454 {
14551455 condition . VariableType = VariableType . PlayerVariable ;
1456- condition . VariableId = PlayerVariableBase . IdFromList ( cmbInvVariable . SelectedIndex ) ;
1456+ condition . VariableId = PlayerVariableBase . IdFromList ( cmbInvVariable . SelectedIndex , VariableDataType . Integer ) ;
14571457 }
14581458 else if ( rdoInvGlobalVariable . Checked )
14591459 {
14601460 condition . VariableType = VariableType . ServerVariable ;
1461- condition . VariableId = ServerVariableBase . IdFromList ( cmbInvVariable . SelectedIndex ) ;
1461+ condition . VariableId = ServerVariableBase . IdFromList ( cmbInvVariable . SelectedIndex , VariableDataType . Integer ) ;
14621462 }
14631463 else if ( rdoInvGuildVariable . Checked )
14641464 {
14651465 condition . VariableType = VariableType . GuildVariable ;
1466- condition . VariableId = GuildVariableBase . IdFromList ( cmbInvVariable . SelectedIndex ) ;
1466+ condition . VariableId = GuildVariableBase . IdFromList ( cmbInvVariable . SelectedIndex , VariableDataType . Integer ) ;
14671467 }
14681468 condition . UseVariable = ! rdoManual . Checked ;
14691469 condition . CheckBank = chkBank . Checked ;
@@ -1565,17 +1565,17 @@ private void SaveFormValues(HasFreeInventorySlots condition)
15651565 if ( rdoInvPlayerVariable . Checked )
15661566 {
15671567 condition . VariableType = VariableType . PlayerVariable ;
1568- condition . VariableId = PlayerVariableBase . IdFromList ( cmbInvVariable . SelectedIndex ) ;
1568+ condition . VariableId = PlayerVariableBase . IdFromList ( cmbInvVariable . SelectedIndex , VariableDataType . Integer ) ;
15691569 }
15701570 else if ( rdoInvGlobalVariable . Checked )
15711571 {
15721572 condition . VariableType = VariableType . ServerVariable ;
1573- condition . VariableId = ServerVariableBase . IdFromList ( cmbInvVariable . SelectedIndex ) ;
1573+ condition . VariableId = ServerVariableBase . IdFromList ( cmbInvVariable . SelectedIndex , VariableDataType . Integer ) ;
15741574 }
15751575 else if ( rdoInvGuildVariable . Checked )
15761576 {
15771577 condition . VariableType = VariableType . GuildVariable ;
1578- condition . VariableId = GuildVariableBase . IdFromList ( cmbInvVariable . SelectedIndex ) ;
1578+ condition . VariableId = GuildVariableBase . IdFromList ( cmbInvVariable . SelectedIndex , VariableDataType . Integer ) ;
15791579 }
15801580 condition . UseVariable = ! rdoManual . Checked ;
15811581 }
0 commit comments