Browse Source

Follow up e8f2fc166fd61aa1f32d18d7cce4cdccaae9696d
* Fixed compilation warning, incompatible types for timer.

Signed-off-by: Cydh Ramdh <cydh@pservero.com>

Cydh Ramdh 9 years ago
parent
commit
94840b1734
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/map/pc.c

+ 4 - 4
src/map/pc.c

@@ -478,19 +478,19 @@ void pc_setrestartvalue(struct map_session_data *sd, char type) {
  * @param data: Data
  * @param data: Data
  * @return false - failure, true - success
  * @return false - failure, true - success
  */
  */
-static bool pc_inventory_rental_end(int tid, unsigned int tick, int id, intptr_t data)
+int pc_inventory_rental_end(int tid, unsigned int tick, int id, intptr_t data)
 {
 {
 	struct map_session_data *sd = map_id2sd(id);
 	struct map_session_data *sd = map_id2sd(id);
 
 
 	if( sd == NULL )
 	if( sd == NULL )
-		return false;
+		return 0;
 	if( tid != sd->rental_timer ) {
 	if( tid != sd->rental_timer ) {
 		ShowError("pc_inventory_rental_end: invalid timer id.\n");
 		ShowError("pc_inventory_rental_end: invalid timer id.\n");
-		return false;
+		return 0;
 	}
 	}
 
 
 	pc_inventory_rentals(sd);
 	pc_inventory_rentals(sd);
-	return true;
+	return 1;
 }
 }
 
 
 /**
 /**