aboutsummaryrefslogtreecommitdiff
path: root/engines/cge2/talk.cpp
diff options
context:
space:
mode:
authorStrangerke2014-08-03 10:32:28 +0200
committerStrangerke2014-08-03 10:33:37 +0200
commit6558581d68c740d380e695cb9c150c81fc082bb8 (patch)
tree3f1aa29c0793ebc5a83456fa2732a9c839c206e5 /engines/cge2/talk.cpp
parent2b60bb9cc376f9e8e7866f07cb2012a6bf748914 (diff)
downloadscummvm-rg350-6558581d68c740d380e695cb9c150c81fc082bb8.tar.gz
scummvm-rg350-6558581d68c740d380e695cb9c150c81fc082bb8.tar.bz2
scummvm-rg350-6558581d68c740d380e695cb9c150c81fc082bb8.zip
CGE2: Remove more checks on the return value of new
Diffstat (limited to 'engines/cge2/talk.cpp')
-rw-r--r--engines/cge2/talk.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/engines/cge2/talk.cpp b/engines/cge2/talk.cpp
index f6321d3e59..dbdfc0d7ca 100644
--- a/engines/cge2/talk.cpp
+++ b/engines/cge2/talk.cpp
@@ -48,7 +48,6 @@ Font::Font(CGE2Engine *vm) : _vm(vm) {
_pos = new uint16[kPosSize];
_widthArr = new uint8[kWidSize];
- assert((_map != nullptr) && (_pos != nullptr) && (_widthArr != nullptr));
load();
}
@@ -136,8 +135,6 @@ uint8 *Talk::box(V2D siz) {
if (siz.y < 8)
siz.y = 8;
uint8 *b = new uint8[n = siz.area()];
- if (!b)
- error("No core!");
memset(b, bg, n);
if (_mode) {