summaryrefslogtreecommitdiffstats
path: root/pokemod/ItemStorage.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2007-06-02 18:12:48 +0000
committerBen Boeckel <MathStuf@gmail.com>2007-06-02 18:12:48 +0000
commitc9afda3ab74614fb36986f96b7972c082f275eca (patch)
tree1b7c0b31950597d6ed562d94158dd3f8701496da /pokemod/ItemStorage.cpp
parentf71140fae5218ee9839ffcd4ec83abfded5124f4 (diff)
downloadsigen-c9afda3ab74614fb36986f96b7972c082f275eca.tar.gz
sigen-c9afda3ab74614fb36986f96b7972c082f275eca.tar.xz
sigen-c9afda3ab74614fb36986f96b7972c082f275eca.zip
Finished off all PokeMod classes, added move validations, fixed up some GUI, various other fixes
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@18 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/ItemStorage.cpp')
-rw-r--r--pokemod/ItemStorage.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/pokemod/ItemStorage.cpp b/pokemod/ItemStorage.cpp
index 66822f53..57f09ef5 100644
--- a/pokemod/ItemStorage.cpp
+++ b/pokemod/ItemStorage.cpp
@@ -23,12 +23,12 @@
#include "ItemStorage.h"
-PokeGen::PokeMod::ItemStorage::ItemStorage(const unsigned _id)
+PokeGen::PokeMod::ItemStorage::ItemStorage(const unsigned _id) :
+ name(""),
+ computer(0),
+ player(1)
{
LogCtor("ItemStorage", _id);
- name = "";
- computer = 0;
- player = 1;
id = _id;
}
@@ -86,7 +86,7 @@ void PokeGen::PokeMod::ItemStorage::ImportIni(Ini &ini, const unsigned _id)
LogImportStart("ItemStorage");
if (_id == UINT_MAX)
{
- ini.GetValue("id", id, UINT_MAX);
+ ini.GetValue("id", id);
// Was there an id associated with the element?
if (id == UINT_MAX)
LogIdNotFound("ItemStorage");