trade: Clean up type of trdswitchown()'s second parameter
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
c274d0820c
commit
76ca2011c3
2 changed files with 3 additions and 3 deletions
|
@ -70,7 +70,7 @@ extern void plane_sona(struct emp_qelem *, int, int, struct shiplist **);
|
|||
extern char *prsub(struct shpstr *);
|
||||
extern int check_trade(void);
|
||||
extern int ontradingblock(int, void *);
|
||||
extern void trdswitchown(int, void *, int);
|
||||
extern void trdswitchown(int, struct empobj *, int);
|
||||
extern int do_look(int);
|
||||
extern void look_at_sect(struct sctstr *, int);
|
||||
extern int radar(int);
|
||||
|
|
|
@ -423,7 +423,7 @@ ontradingblock(int type, void *ptr)
|
|||
}
|
||||
|
||||
void
|
||||
trdswitchown(int type, void *ptr, int newown)
|
||||
trdswitchown(int type, struct empobj *obj, int newown)
|
||||
{
|
||||
struct trdstr trade;
|
||||
union empobj_storage tg;
|
||||
|
@ -436,7 +436,7 @@ trdswitchown(int type, void *ptr, int newown)
|
|||
continue;
|
||||
if (trade.trd_type != type)
|
||||
continue;
|
||||
if (tg.gen.uid != ((struct empobj *)ptr)->uid)
|
||||
if (tg.gen.uid != obj->uid)
|
||||
continue;
|
||||
if (trade.trd_owner == trade.trd_maxbidder)
|
||||
trade.trd_maxbidder = newown;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue