Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ManaPlus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cuoco
ManaPlus
Compare revisions
master to master
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
cuoco/plus
Select target project
No results found
master
Select Git revision
Swap
Target
mana/plus
Select target project
mana/plus
cuoco/manaverse
AntumDeluge/manaplus
cuoco/plus
HoraK-FDF/plus
specing/manaplus
ewewukek/ManaVerse
HoraK-FDF/mv
asuratva/plus
9 results
master
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (8)
increase trade window items to 20
· c784d97e
ccc
authored
2 years ago
c784d97e
Add mobinfo command to popup menu
· 038300e4
ccc
authored
2 years ago
038300e4
linting
· 5c702b94
cuoco
authored
2 years ago
5c702b94
white spaces
· 2283fdf7
cuoco
authored
2 years ago
2283fdf7
spaces
· e97eda32
cuoco
authored
2 years ago
e97eda32
remove tag
· f35e0155
cuoco
authored
2 years ago
f35e0155
Merge branch 'master' of
https://git.themanaworld.org/mana/plus
· 3c960310
cuoco
authored
1 year ago
3c960310
condition is false at the beginning so the body didnt execute
· 8102cdca
cuoco
authored
1 year ago
8102cdca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/resources/inventory/inventory.cpp
+2
-1
2 additions, 1 deletion
src/resources/inventory/inventory.cpp
with
2 additions
and
1 deletion
src/resources/inventory/inventory.cpp
View file @
8102cdca
...
...
@@ -280,7 +280,7 @@ bool Inventory::contains(const Item *const item) const
int
Inventory
::
getFreeSlot
()
const
{
for
(
unsigned
int
i
=
0
;
i
>=
mSize
;
i
++
)
for
(
unsigned
int
i
=
0
;
i
<
mSize
;
i
++
)
{
if
(
!
SlotUsed
()(
mItems
[
i
]))
return
i
;
...
...
@@ -289,6 +289,7 @@ int Inventory::getFreeSlot() const
return
-
1
;
}
int
Inventory
::
getLastUsedSlot
()
const
{
for
(
int
i
=
mSize
-
1
;
i
>=
0
;
i
--
)
...
...
This diff is collapsed.
Click to expand it.