Gloves & Cloak Enchant Null Pointer

by LevvaLevva, 1240741574|%e %b %Y

Running EnhSim under a debugger I note in enhsim.cpp v1.7.0 line 1007

if (gloves_enchant_) {
    gloves_enchant_->use();
  }
  if (cloak_enchant_) {
    cloak_enchant_->use();
  }

is failing due to null pointer exceptions it needs an initialisation in the block at the start. Adding in

                gloves_enchant_(0),
                cloak_enchant_(0),

at line 35 fixed the issue.


Add a New Comment
or Sign in as Wikidot user
(will not be published)
- +



Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License