mirror of
https://github.com/aimrebirth/tools.git
synced 2026-04-14 17:33:25 +00:00
Throw exception on unknown object.
This commit is contained in:
parent
deba3b5e72
commit
e0d8f31839
1 changed files with 3 additions and 2 deletions
|
|
@ -18,6 +18,8 @@
|
|||
|
||||
#include "objects.h"
|
||||
|
||||
#include <primitives/exceptions.h>
|
||||
|
||||
Segment *Segment::create_segment(const buffer &b)
|
||||
{
|
||||
ObjectType segment_type;
|
||||
|
|
@ -69,8 +71,7 @@ Segment *Segment::create_segment(const buffer &b)
|
|||
segment = new SegmentObjects<Tank>;
|
||||
break;
|
||||
default:
|
||||
assert(false);
|
||||
break;
|
||||
SW_UNIMPLEMENTED;
|
||||
}
|
||||
if (segment)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue