1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-03 00:46:55 +02:00

* a voodoo fix of a mysterious bug

This commit is contained in:
mateuszb
2010-12-27 10:48:28 +00:00
parent 471c23ba71
commit 8104a43809
3 changed files with 34 additions and 25 deletions

View File

@ -30,6 +30,7 @@ bool CGDefInfo::isVisitable() const
}
CGDefInfo::CGDefInfo()
{
handler = NULL;
visitDir = (8|16|32|64|128); //4,5,6,7,8 - any not-from-up direction
width = height = -1;
@ -58,6 +59,7 @@ void CDefObjInfoHandler::load()
for(int hh=0; hh<objNumber; ++hh)
{
CGDefInfo* nobj = new CGDefInfo();
nobj->handler = NULL;
std::string dump;
inp>>nobj->name;