* [Optimized]:
- list and size not being initialized (size get intialized in default: switch case) Eliminated default case and initialized list and size at the beginning. git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7021 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
@@ -2837,8 +2837,8 @@ int parse_frommap(int fd) {
|
||||
int fame = RFIFOL(fd, 6);
|
||||
char type = RFIFOB(fd, 10);
|
||||
char pos = RFIFOB(fd, 11);
|
||||
int size;
|
||||
struct fame_list *list;
|
||||
int size = 0;
|
||||
struct fame_list *list = NULL;
|
||||
RFIFOSKIP(fd,12);
|
||||
|
||||
switch(type) {
|
||||
@@ -2854,9 +2854,6 @@ int parse_frommap(int fd) {
|
||||
size = fame_list_size_taekwon;
|
||||
list = taekwon_fame_list;
|
||||
break;
|
||||
default:
|
||||
size = 0;
|
||||
break;
|
||||
}
|
||||
if(!size) break; //No list.
|
||||
if(pos)
|
||||
|
||||
Reference in New Issue
Block a user