home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Not very elegant solution to bug of appropriate inventory selection not being saved...
[plomrogue]
/
src
/
map_object_actions.c
diff --git
a/src/map_object_actions.c
b/src/map_object_actions.c
index 4217145843fc2d1bf80b22df7dd0cbe65f5be159..d486349cc2f6f7ba566b5ae5c44559f8cd5f29df 100644
(file)
--- a/
src/map_object_actions.c
+++ b/
src/map_object_actions.c
@@
-169,9
+169,11
@@
extern void player_drop(struct World * world)
if (NULL == player->owns)
{
update_log(world, "\nYou try to drop an object, but you own none.");
if (NULL == player->owns)
{
update_log(world, "\nYou try to drop an object, but you own none.");
+ world->old_inventory_select = 0;
}
else
{
}
else
{
+ world->old_inventory_select = world->inventory_select;
struct MapObj * owned = player->owns;
uint8_t i = 0;
for (; i != world->inventory_select; i++, owned = owned->next);
struct MapObj * owned = player->owns;
uint8_t i = 0;
for (; i != world->inventory_select; i++, owned = owned->next);