Why is the second line of the following code throwing a C error : lvalue required as left operand of assignment
if (!str_cmp( type, "obj")){
if ( ((OBJ_DATA*) tar = get_obj_here( NULL, room, target)) == NULL){
bug("prog_destroy: obj target not found.", 0);
return;
}
else{
list = (OBJ_DATA*) tar;
list = list->contains;
}
}