mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +02:00
* a voodoo fix of a mysterious bug
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user