Changeset 480 for trunk/thune/eval.c
- Timestamp:
- 09/24/07 23:27:09 (14 months ago)
- Files:
-
- 1 modified
-
trunk/thune/eval.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/thune/eval.c
r471 r480 170 170 goto set_none; 171 171 } 172 ur_throwErr( UR_ERR_SCRIPT, "Invalid select!" ); 173 return 0; 172 174 } 173 175 else 174 176 { 175 if( ur_pick( ut, val, ur_sel(sel) - 1, res ) ) 176 return 1; 177 } 178 179 ur_throwErr( UR_ERR_SCRIPT, "Invalid select!" ); 180 return 0; 177 int n = ur_sel(sel); 178 if( n ) 179 { 180 if( n > 0 ) 181 --n; 182 if( ur_pick( ut, val, n, res ) ) 183 return 1; 184 } 185 } 181 186 182 187 set_none:
