summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authoramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-01 21:40:11 +0000
committeramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-01 21:40:11 +0000
commit0073a0c0267b57250645bf3e0ed5a7ac4aa7463b (patch)
tree7ab0376dcff8b7fe62eb60d52aa4ac89fb29f35e /src/map/pc.c
parent207277be0ac9c73626adc9cf8a6841a3dffe67ef (diff)
downloadhercules-0073a0c0267b57250645bf3e0ed5a7ac4aa7463b.tar.gz
hercules-0073a0c0267b57250645bf3e0ed5a7ac4aa7463b.tar.bz2
hercules-0073a0c0267b57250645bf3e0ed5a7ac4aa7463b.tar.xz
hercules-0073a0c0267b57250645bf3e0ed5a7ac4aa7463b.zip
Fix some build issues
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@432 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 13d1914c8..118104b9d 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -3464,9 +3464,11 @@ int pc_item_repair(struct map_session_data *sd,int idx)
{
int flag=1, material;
int materials[5] = { 0, 1002, 998, 999, 756 };
+ struct item *item;
nullpo_retr(0, sd);
- struct item *item = &sd->status.inventory[idx];
+
+ item = &sd->status.inventory[idx];
if(idx >= 0 && idx < MAX_INVENTORY) {
if(item->nameid > 0 && item->attribute == 1 ) {
@@ -3501,9 +3503,10 @@ int pc_item_refine(struct map_session_data *sd,int idx)
{
int flag = 1, i = 0, count = 0, ep = 0, per, refine;
int material[5] = { 0, 1010, 1011, 984, 984 };
+ struct item *item;
nullpo_retr(0, sd);
- struct item *item = &sd->status.inventory[idx];
+ item = &sd->status.inventory[idx];
if(idx >= 0 && idx < MAX_INVENTORY) {
if(item->nameid > 0 && itemdb_type(item->nameid)==4) {