1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-05 13:04:54 +02:00
Vadim Markovtsev 92e011429f Fix crash on unknown map objects
If getHandlerFor() fails to find the handler, it returns a nullptr
shared pointer, which is later dereferenced unconditionally.

How to reproduce:
Download map "Happy time Dragons!!!" from http://heroesportal.net/maps.php?type=H3AB-XL&sort=r

=>

Failed to find object of type 5:144
SIGSEGV
2016-01-18 21:16:55 +03:00
..
2015-12-08 09:53:14 +03:00
2015-12-08 09:53:14 +03:00
2015-12-08 09:53:14 +03:00
2015-12-04 01:17:43 +02:00
2015-12-08 09:53:14 +03:00
2015-12-02 20:59:38 +02:00
2016-01-01 20:06:38 +01:00
2015-11-01 00:01:41 +03:00
2015-12-23 15:23:56 +01:00